/*
 * Liquid Field concept for treyharnden.com
 * Parallel redesign only. The production stylesheet remains intact in style.css.
 */

:root {
    --ink: #031822;
    --ink-deep: #010e14;
    --charcoal: rgba(3, 34, 48, 0.76);
    --charcoal-2: rgba(7, 51, 65, 0.72);
    --paper: #dcece8;
    --paper-bright: #f3f7f2;
    --muted: rgba(221, 239, 235, 0.68);
    --line: rgba(204, 244, 239, 0.18);
    --line-light: rgba(204, 244, 239, 0.22);
    --mint: #77dfdd;
    --rust: #77dfdd;
    --rust-dark: #3faeb2;
    --white: #f3f7f2;
    --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --mono: "IBM Plex Mono", "Courier New", monospace;
    --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --page: 1320px;
    --header-height: 78px;
    --glass: linear-gradient(145deg, rgba(8, 56, 71, 0.64), rgba(3, 34, 48, 0.46));
    --glass-deep: linear-gradient(145deg, rgba(4, 39, 52, 0.78), rgba(2, 24, 34, 0.64));
    --glass-soft: rgba(4, 39, 52, 0.42);
    --shadow: 0 30px 90px rgba(0, 12, 19, 0.2);
}

html {
    background: var(--ink-deep);
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    overflow-x: hidden;
    color: var(--white);
    background: var(--ink-deep);
    font-family: var(--body);
    font-weight: 450;
    letter-spacing: -0.008em;
}

body::selection,
body *::selection {
    color: var(--ink-deep);
    background: var(--mint);
}

.liquid-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 18%, rgba(49, 148, 163, 0.2), transparent 32%),
        linear-gradient(145deg, #062c3d 0%, #031822 72%);
}

.liquid-field-fallback,
.liquid-field-canvas,
.liquid-field-vignette {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.liquid-field-fallback {
    z-index: 0;
    background:
        linear-gradient(rgba(105, 207, 214, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 207, 214, 0.055) 1px, transparent 1px),
        radial-gradient(circle at 68% 34%, rgba(60, 162, 177, 0.26), transparent 34%),
        linear-gradient(145deg, #083b4f, #031822 72%);
    background-size: 12.5vw 12.5vw, 12.5vw 12.5vw, auto, auto;
}

.liquid-field-canvas {
    z-index: 1;
    display: block;
}

.liquid-field-vignette {
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(1, 14, 20, 0.04), rgba(1, 14, 20, 0.34)),
        radial-gradient(circle at 50% 36%, transparent 24%, rgba(1, 13, 19, 0.46) 100%);
}

.liquid-field-grain {
    position: absolute;
    inset: -60%;
    z-index: 3;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
    transform: rotate(11deg);
    animation: liquid-grain-shift 9s steps(6) infinite;
    mix-blend-mode: soft-light;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 2;
}

.skip-link {
    z-index: 100;
    color: var(--ink-deep);
    background: var(--mint);
}

.site-header {
    position: sticky;
    top: 0;
    min-height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background: rgba(1, 18, 26, 0.92);
    box-shadow: 0 14px 46px rgba(0, 12, 19, 0.14);
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
}

.site-header-inner {
    width: min(calc(100% - 36px), var(--page));
    min-height: var(--header-height);
    margin-inline: auto;
}

.site-brand {
    min-width: 320px;
    padding: 0 28px 0 0;
    border-right: 1px solid var(--line);
}

.brand-sigil {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(119, 223, 221, 0.5);
    border-radius: 13px;
    color: var(--ink-deep);
    background: var(--mint);
    box-shadow: 0 0 28px rgba(119, 223, 221, 0.2);
    font-family: var(--body);
    font-weight: 750;
    letter-spacing: -0.04em;
}

.brand-copy {
    gap: 3px;
}

.brand-copy strong {
    color: var(--white);
    font-family: var(--body);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.12em;
}

.brand-copy small {
    color: rgba(221, 239, 235, 0.48);
    font-size: 0.63rem;
    letter-spacing: 0.09em;
}

.site-nav {
    align-items: center;
    gap: 4px;
    padding-left: 18px;
}

.site-nav a {
    align-self: center;
    height: 42px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(241, 245, 239, 0.58);
    background: transparent;
    font-size: 0.66rem;
    letter-spacing: 0.11em;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a::after {
    display: none;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--white);
    border-color: rgba(119, 223, 221, 0.3);
    background: rgba(8, 62, 78, 0.5);
    transform: translateY(-1px);
}

.nav-toggle {
    border-left: 1px solid var(--line);
    color: var(--white);
    background: rgba(3, 34, 48, 0.42);
}

.home-hero {
    width: min(calc(100% - 36px), var(--page));
    min-height: calc(100svh - var(--header-height) - 24px);
    height: auto;
    max-height: none;
    margin: 18px auto 0;
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
    gap: 18px;
    background: transparent;
}

.home-hero-copy-panel,
.home-hero-portrait {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--glass);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), var(--shadow);
}

.home-hero-copy-panel {
    padding: clamp(42px, 6vw, 86px);
    border-right: 1px solid var(--line);
    isolation: isolate;
}

.home-hero-copy-panel::before {
    top: clamp(34px, 5vw, 68px);
    left: clamp(42px, 6vw, 86px);
    width: 44px;
    height: 2px;
    background: var(--mint);
    box-shadow: 0 0 20px rgba(119, 223, 221, 0.5);
}

.home-hero-copy-panel::after {
    content: "";
    position: absolute;
    inset: auto -14% -24% 20%;
    z-index: -1;
    height: 54%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 162, 174, 0.18), transparent 67%);
    filter: blur(18px);
}

.hero-copy {
    width: min(100%, 680px);
    margin: auto 0;
}

.hero-copy h1,
.page-masthead h1,
.display-heading,
.directory-heading h2,
.field-story-copy h3,
.contact-band h2,
.project-route-inner h2,
.empty-state h2 {
    color: var(--white);
    font-family: var(--display);
    font-weight: 500;
    text-transform: none;
    text-wrap: balance;
}

.hero-copy h1 {
    margin-bottom: clamp(26px, 4vh, 44px);
    font-size: clamp(4.9rem, 8.2vw, 8.1rem);
    line-height: 0.84;
    letter-spacing: -0.064em;
    text-shadow: 0 10px 36px rgba(1, 13, 19, 0.32);
}

.hero-copy h1 span,
.page-masthead h1 span {
    color: var(--white);
}

.hero-lede {
    max-width: 570px;
    margin-bottom: 34px;
    color: var(--muted);
    font-family: var(--body);
    font-size: clamp(1rem, 1.25vw, 1.22rem);
    font-weight: 450;
    line-height: 1.62;
    letter-spacing: -0.012em;
}

.hero-coordinate {
    color: rgba(221, 239, 235, 0.46);
}

.hero-coordinate::before {
    background: var(--mint);
    box-shadow: 0 0 16px rgba(119, 223, 221, 0.48);
}

.home-hero-portrait {
    min-height: 640px;
    background: rgba(2, 26, 36, 0.56);
}

.home-hero-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 48%, rgba(1, 18, 26, 0.44) 100%),
        linear-gradient(120deg, rgba(52, 153, 164, 0.06), transparent 52%);
    pointer-events: none;
}

.home-hero-image {
    filter: saturate(0.84) contrast(1.04);
    transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 450ms ease;
}

.home-hero-portrait:hover .home-hero-image {
    transform: scale(1.018);
    filter: saturate(0.98) contrast(1.04);
}

.button {
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 0.73rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: none;
}

.button-rust,
.button-dark {
    border-color: rgba(119, 223, 221, 0.62);
    color: var(--ink-deep);
    background: var(--mint);
    box-shadow: 0 10px 34px rgba(119, 223, 221, 0.15);
}

.button-rust:hover,
.button-dark:hover {
    border-color: #a3efeb;
    color: var(--ink-deep);
    background: #a3efeb;
}

.button-light {
    border-color: rgba(241, 245, 239, 0.3);
    color: var(--white);
    background: rgba(2, 27, 38, 0.42);
}

.button-light:hover {
    border-color: rgba(119, 223, 221, 0.58);
    color: var(--white);
    background: rgba(8, 62, 78, 0.64);
}

.signal-strip,
.index-strip,
.workout-summary-band,
.workout-source-band,
.project-route-band,
.contact-band {
    border: 0;
    color: var(--white);
    background: transparent;
}

.signal-strip {
    padding: 18px 0 0;
}

.signal-strip-inner,
.index-strip-inner,
.workout-summary-grid {
    width: min(calc(100% - 36px), var(--page));
    margin-inline: auto;
    gap: 12px;
}

.signal-item,
.index-strip span,
.workout-summary-item {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--glass-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 16px 45px rgba(0, 12, 19, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.signal-item,
.signal-item:first-child {
    padding: 22px 24px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.signal-label,
.workout-summary-label {
    color: rgba(221, 239, 235, 0.47);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
}

.signal-item strong,
.signal-item-mint strong,
.signal-item-rust strong,
.systems-signal-strip .signal-item-rust strong,
.workout-summary-value {
    color: var(--white);
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.section-band {
    padding-block: clamp(72px, 9vw, 124px) 0;
    color: var(--white);
    background: transparent;
}

.section-band:last-of-type {
    padding-bottom: clamp(72px, 9vw, 124px);
}

.section-band > .page-wrap,
.project-route-inner,
.contact-band-inner,
.workout-source-inner {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--glass);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.section-band > .page-wrap {
    padding: clamp(34px, 5.5vw, 82px);
}

.band-ink,
.band-paper,
.band-charcoal {
    color: var(--white);
    background: transparent;
}

.chapter-label,
.chapter-label-dark,
.mono-kicker,
.source-status {
    color: var(--mint);
    font-family: var(--body);
    font-size: 0.67rem;
    font-weight: 650;
    letter-spacing: 0.12em;
}

.section-heading-grid {
    grid-template-columns: minmax(120px, 0.26fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 80px);
    margin-bottom: clamp(42px, 6vw, 74px);
}

.display-heading,
.display-heading-dark {
    color: var(--white);
    font-size: clamp(3.25rem, 6.3vw, 6.6rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.section-lede,
.section-lede-dark,
.directory-heading p,
.page-masthead-grid > div > p,
.field-story-copy > p:not(.mono-kicker) {
    color: var(--muted);
    font-family: var(--body);
    font-size: clamp(0.98rem, 1.22vw, 1.15rem);
    line-height: 1.62;
    letter-spacing: -0.01em;
}

.system-directory,
.case-directory,
.link-directory,
.activity-directory {
    border-top: 1px solid var(--line);
}

.system-row,
.case-row,
.directory-row,
.activity-row {
    border-color: var(--line);
    color: var(--white);
    background: rgba(2, 27, 38, 0.2);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.system-row:hover,
.directory-row:hover,
.activity-row:hover {
    color: var(--white);
    background: rgba(14, 75, 88, 0.52);
    transform: translateX(4px);
}

.system-index,
.directory-number,
.case-index,
.activity-date {
    color: var(--mint);
}

.system-title,
.directory-name,
.case-heading h3,
.activity-main strong {
    color: var(--white);
}

.system-description,
.directory-meta,
.case-copy,
.case-meta,
.activity-main small,
.activity-row > span:not(.activity-main):not(.activity-date):not(.activity-arrow) {
    color: rgba(221, 239, 235, 0.58);
}

.system-arrow,
.activity-arrow,
.directory-row > span:last-child,
.text-link {
    color: var(--mint);
}

.training-metrics {
    gap: 10px;
    border: 0;
}

.training-metrics > div,
.training-metrics > div:last-child {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(2, 27, 38, 0.28);
}

.training-metrics strong {
    color: var(--white);
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.training-metrics span {
    color: rgba(221, 239, 235, 0.52);
}

.field-story {
    gap: clamp(38px, 6vw, 86px);
    padding-top: clamp(44px, 6vw, 78px);
    border-top-color: var(--line);
}

.field-image {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(2, 27, 38, 0.36);
    box-shadow: 0 24px 70px rgba(0, 12, 19, 0.2);
}

.field-image img {
    filter: saturate(0.72) contrast(1.04) hue-rotate(8deg);
}

.field-image figcaption {
    color: rgba(221, 239, 235, 0.58);
    background: rgba(1, 18, 26, 0.82);
}

.field-story-copy h3 {
    font-size: clamp(2.5rem, 4.2vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.048em;
}

.field-log {
    border-top-color: var(--line);
}

.field-log-row {
    border-color: var(--line);
}

.field-log-row span {
    color: var(--mint);
}

.field-log-row p {
    color: var(--muted);
}

.contact-band,
.project-route-band,
.workout-source-band {
    padding: clamp(72px, 9vw, 124px) 0 0;
}

.contact-band-inner,
.project-route-inner,
.workout-source-inner {
    width: min(calc(100% - 36px), var(--page));
    margin-inline: auto;
    padding: clamp(32px, 5vw, 68px);
}

.contact-band h2,
.project-route-inner h2 {
    color: var(--white);
    font-size: clamp(2.8rem, 5.4vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.052em;
}

.site-footer {
    margin-top: clamp(72px, 9vw, 124px);
    padding-block: 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: rgba(1, 18, 26, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-footer-inner {
    width: min(calc(100% - 36px), var(--page));
}

.footer-mark,
.site-footer a {
    color: var(--white);
}

.site-footer p {
    color: rgba(221, 239, 235, 0.5);
}

.site-footer nav {
    flex-wrap: wrap;
}

.liquid-motion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: rgba(241, 245, 239, 0.7);
    background: rgba(2, 27, 38, 0.38);
    font: 600 0.66rem/1 var(--body);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.liquid-motion-toggle span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 13px rgba(119, 223, 221, 0.8);
    animation: liquid-status-pulse 2.2s ease-in-out infinite;
}

.liquid-motion-toggle:hover,
.liquid-motion-toggle:focus-visible {
    color: var(--white);
    border-color: rgba(119, 223, 221, 0.5);
    background: rgba(8, 62, 78, 0.58);
}

.liquid-motion-toggle[aria-pressed="true"] span {
    opacity: 0.45;
    animation: none;
    box-shadow: none;
}

.page-masthead {
    padding: 18px 0 0;
    color: var(--white);
    background: transparent;
}

.page-masthead::before {
    display: none;
}

.page-masthead-grid {
    min-height: clamp(430px, 63svh, 680px);
    padding: clamp(42px, 7vw, 96px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--glass);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), var(--shadow);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.page-masthead h1 {
    font-size: clamp(4.6rem, 9.4vw, 9.8rem);
    line-height: 0.82;
    letter-spacing: -0.065em;
}

.page-masthead-grid > div > p {
    max-width: 660px;
}

.index-strip {
    padding-top: 18px;
}

.index-strip-inner {
    border: 0;
}

.index-strip span,
.index-strip span:first-child {
    padding: 20px;
    border: 1px solid var(--line);
    color: rgba(221, 239, 235, 0.58);
}

.index-strip .index-strip-accent {
    color: var(--mint);
}

.directory-section {
    gap: clamp(46px, 7vw, 100px);
}

.directory-heading h2 {
    color: var(--white);
    font-size: clamp(2.5rem, 4.2vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: -0.048em;
}

.link-directory-dark,
.link-directory-dark .directory-row,
.link-directory-dark .directory-row:hover {
    color: var(--white);
}

.case-row {
    border-color: var(--line);
}

.case-heading p,
.case-impact,
.case-meta a {
    color: var(--mint);
}

.case-repo-private {
    color: rgba(221, 239, 235, 0.48);
}

.workout-source-inner {
    color: var(--white);
}

.workout-source-inner strong,
.source-status {
    color: var(--white);
}

.source-status i {
    background: var(--mint);
    box-shadow: 0 0 12px rgba(119, 223, 221, 0.7);
}

.workout-source-inner p {
    color: var(--muted);
}

.workout-summary-band {
    padding: 18px 0 0;
}

.workout-summary-grid {
    padding: 0;
    border: 0;
}

.workout-summary-item,
.workout-summary-item:first-child,
.workout-summary-primary {
    padding: 24px;
    border: 1px solid var(--line);
}

.activity-row {
    border-color: var(--line);
}

.sport-grid,
.effort-grid {
    gap: 12px;
}

.sport-column,
.effort-item {
    border: 1px solid var(--line);
    border-radius: 17px;
    color: var(--white);
    background: rgba(2, 27, 38, 0.3);
}

.sport-column header,
.sport-column section,
.effort-item {
    border-color: var(--line);
}

.sport-column header i,
.sport-column h4,
.effort-item span {
    color: var(--mint);
}

.sport-column h3,
.sport-column strong,
.effort-item strong {
    color: var(--white);
}

.sport-column section div span {
    color: rgba(221, 239, 235, 0.55);
}

.empty-state i {
    color: var(--mint);
}

.directory-icon-image {
    filter: brightness(0) invert(1);
}

[data-reveal] {
    transform: translateY(18px);
    transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
    transform: translateY(0);
}

@keyframes liquid-grain-shift {
    0%, 100% { transform: translate3d(-2%, -1%, 0) rotate(11deg); }
    50% { transform: translate3d(2%, 1%, 0) rotate(11deg); }
}

@keyframes liquid-status-pulse {
    0%, 100% { opacity: 0.42; transform: scale(0.84); }
    50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1120px) {
    .site-brand {
        min-width: 260px;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    }

    .hero-copy h1 {
        font-size: clamp(4.5rem, 8.5vw, 7rem);
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 68px;
    }

    .site-header-inner,
    .page-wrap,
    .site-footer-inner,
    .signal-strip-inner,
    .index-strip-inner,
    .workout-summary-grid,
    .contact-band-inner,
    .project-route-inner,
    .workout-source-inner,
    .home-hero {
        width: min(calc(100% - 28px), var(--page));
    }

    .site-brand {
        min-width: 0;
        padding-inline: 0;
        border-right: 0;
    }

    .site-nav {
        top: var(--header-height);
        gap: 0;
        padding: 12px 14px 16px;
        border-bottom: 1px solid var(--line);
        background: rgba(1, 18, 26, 0.985);
        box-shadow: 0 28px 70px rgba(0, 12, 19, 0.4);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
    }

    .site-nav a {
        align-self: stretch;
        height: auto;
        min-height: 54px;
        padding: 0 18px;
        margin-bottom: 6px;
        border: 1px solid var(--line);
        border-radius: 12px;
        color: rgba(241, 245, 239, 0.72);
        background: rgba(8, 62, 78, 0.24);
    }

    .site-nav a::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--mint);
        opacity: 0.45;
    }

    .home-hero {
        min-height: 720px;
        height: auto;
        grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    }

    .home-hero-copy-panel {
        padding: 44px 34px;
    }

    .home-hero-copy-panel::before {
        top: 34px;
        left: 34px;
    }

    .hero-copy h1 {
        font-size: clamp(4rem, 9.5vw, 5.6rem);
    }

    .signal-strip-inner,
    .training-metrics,
    .index-strip-inner {
        gap: 10px;
    }

    .signal-item:nth-child(2),
    .training-metrics > div:nth-child(2),
    .index-strip span:nth-child(2),
    .signal-item:nth-child(-n + 2),
    .training-metrics > div:nth-child(-n + 2),
    .index-strip span:nth-child(-n + 2) {
        border: 1px solid var(--line);
    }

    .section-heading-grid,
    .page-masthead-grid,
    .directory-section,
    .workout-activity-band .directory-heading,
    .band-charcoal .directory-heading {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-masthead-grid {
        min-height: 500px;
        padding: 54px 42px;
    }

    .page-masthead h1 {
        font-size: clamp(4.3rem, 12vw, 7rem);
    }
}

@media (max-width: 720px) {
    .home-hero {
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-rows: auto 480px;
    }

    .home-hero-copy-panel {
        padding: 52px 28px 30px;
        border: 1px solid var(--line);
    }

    .home-hero-copy-panel::before {
        top: 30px;
        left: 28px;
    }

    .home-hero-portrait {
        min-height: 0;
        border: 1px solid var(--line);
    }

    .home-hero-image {
        object-position: 50% 18%;
    }

    .hero-copy h1 {
        font-size: clamp(4.3rem, 18vw, 6rem);
        line-height: 0.86;
    }

    .hero-lede {
        max-width: 36ch;
        font-size: 0.98rem;
    }

    .hero-coordinate {
        display: none;
    }

    .button-row {
        align-items: stretch;
    }

    .button-row .button {
        width: 100%;
        justify-content: space-between;
    }

    .section-band > .page-wrap,
    .contact-band-inner,
    .project-route-inner,
    .workout-source-inner,
    .page-masthead-grid {
        border-radius: 22px;
    }

    .section-band > .page-wrap {
        padding: 32px 22px;
    }

    .display-heading,
    .display-heading-dark {
        font-size: clamp(3rem, 14vw, 4.8rem);
    }

    .contact-band-inner,
    .project-route-inner,
    .workout-source-inner {
        padding: 32px 24px;
    }

    .contact-band h2,
    .project-route-inner h2 {
        font-size: clamp(2.7rem, 12vw, 4.2rem);
    }

    .page-masthead-grid {
        min-height: 460px;
        padding: 42px 26px;
    }

    .page-masthead h1 {
        font-size: clamp(4rem, 18vw, 6.4rem);
    }

    .training-metrics > div,
    .signal-item,
    .signal-item:first-child,
    .index-strip span,
    .index-strip span:first-child,
    .workout-summary-item,
    .workout-summary-item:first-child {
        border: 1px solid var(--line);
    }

    .site-footer-inner {
        gap: 26px;
    }

    .site-footer nav {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .brand-copy small {
        display: none;
    }

    .brand-sigil {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .home-hero,
    .site-header-inner,
    .page-wrap,
    .site-footer-inner,
    .signal-strip-inner,
    .index-strip-inner,
    .workout-summary-grid,
    .contact-band-inner,
    .project-route-inner,
    .workout-source-inner {
        width: min(calc(100% - 20px), var(--page));
    }

    .home-hero {
        margin-top: 10px;
        gap: 10px;
        grid-template-rows: auto 410px;
    }

    .home-hero-copy-panel,
    .home-hero-portrait {
        border-radius: 20px;
    }

    .home-hero-copy-panel {
        padding: 48px 22px 24px;
    }

    .home-hero-copy-panel::before {
        top: 26px;
        left: 22px;
        width: 36px;
    }

    .hero-copy h1 {
        margin-bottom: 22px;
        font-size: clamp(3.85rem, 19vw, 5.2rem);
    }

    .hero-lede {
        margin-bottom: 24px;
        font-size: 0.94rem;
        line-height: 1.54;
    }

    .signal-strip {
        padding-top: 10px;
    }

    .signal-strip-inner,
    .index-strip-inner,
    .workout-summary-grid {
        gap: 8px;
    }

    .signal-item,
    .signal-item:first-child,
    .index-strip span,
    .workout-summary-item,
    .workout-summary-item:first-child {
        padding: 18px;
        border-radius: 14px;
    }

    .section-band,
    .contact-band,
    .project-route-band,
    .workout-source-band {
        padding-top: 64px;
    }

    .section-band > .page-wrap,
    .page-masthead-grid,
    .contact-band-inner,
    .project-route-inner,
    .workout-source-inner {
        border-radius: 18px;
    }

    .section-heading-grid {
        margin-bottom: 36px;
    }

    .system-row,
    .directory-row,
    .activity-row {
        transform: none;
    }

    .page-masthead {
        padding-top: 10px;
    }

    .page-masthead-grid {
        min-height: 410px;
        padding: 36px 22px;
    }

    .page-masthead h1 {
        font-size: clamp(3.65rem, 18.5vw, 5.1rem);
    }

    .liquid-motion-toggle {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .liquid-field-grain,
    .liquid-motion-toggle span {
        animation: none;
    }

    .home-hero-image,
    .site-nav a,
    .system-row,
    .directory-row,
    .activity-row,
    [data-reveal] {
        transition: none;
        transform: none;
    }
}

/* The two personal slash pages joined the live site after this concept began. */
.slash-page-masthead {
    padding: 18px 0 0;
}

.slash-page-masthead > .page-wrap {
    display: flex;
    align-items: center;
    min-height: clamp(430px, 58svh, 640px);
    padding: clamp(42px, 7vw, 96px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--glass);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), var(--shadow);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.slash-page-masthead h1 {
    max-width: 1060px;
    color: var(--white);
    font-family: var(--display);
    font-size: clamp(4.6rem, 9.4vw, 9.8rem);
    font-weight: 500;
    line-height: 0.82;
    letter-spacing: -0.065em;
    text-transform: none;
}

.slash-page-masthead h1 span {
    color: var(--white);
}

.slash-page-band {
    min-height: 0;
}

.slash-page-layout {
    gap: clamp(36px, 6vw, 86px);
}

.slash-page-stamp,
.slash-page-stamp strong {
    color: rgba(221, 239, 235, 0.54);
}

.slash-page-stamp::before {
    height: 2px;
    background: var(--mint);
    box-shadow: 0 0 16px rgba(119, 223, 221, 0.5);
}

.slash-page-lead {
    color: var(--white);
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.2vw, 2.8rem);
    line-height: 1.22;
    letter-spacing: -0.035em;
}

.focus-list {
    border-color: var(--line);
}

.focus-list section {
    border-color: var(--line);
}

.focus-list h2 {
    color: var(--white);
    font-family: var(--display);
    font-size: clamp(1.65rem, 2.4vw, 2.3rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-transform: none;
}

.focus-list p,
.slash-page-note,
.indie-web-note {
    color: var(--muted);
}

.slash-page-note a,
.indie-web-note a {
    color: var(--mint);
}

.friend-list {
    gap: 12px;
    border: 0;
}

.friend-card,
.friend-card:last-child:nth-child(odd) {
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--white);
    background: rgba(2, 27, 38, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.friend-card:hover {
    color: var(--white);
    border-color: rgba(119, 223, 221, 0.42);
    background: rgba(14, 75, 88, 0.56);
}

.friend-name {
    color: var(--white);
    font-family: var(--display);
    font-size: clamp(1.55rem, 2.3vw, 2.1rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    text-transform: none;
}

.friend-url,
.friend-card:hover .friend-url {
    color: var(--mint);
}

.friend-card p,
.friend-card:hover p {
    color: var(--muted);
}

.indie-web-note code {
    color: var(--white);
}

@media (max-width: 900px) {
    .slash-page-masthead > .page-wrap {
        min-height: 480px;
        padding: 54px 42px;
    }
}

@media (max-width: 720px) {
    .slash-page-masthead > .page-wrap {
        min-height: 440px;
        padding: 42px 26px;
        border-radius: 22px;
    }

    .slash-page-masthead h1 {
        font-size: clamp(4rem, 18vw, 6.4rem);
    }
}

@media (max-width: 480px) {
    .slash-page-masthead {
        padding-top: 10px;
    }

    .slash-page-masthead > .page-wrap {
        min-height: 400px;
        padding: 36px 22px;
        border-radius: 18px;
    }

    .slash-page-masthead h1 {
        font-size: clamp(3.55rem, 18vw, 5.1rem);
    }

    .friend-card,
    .friend-card:last-child:nth-child(odd) {
        min-height: 0;
    }
}
