/* layout.css - Base layout, wipe, nav, pages, ticker, overlays, modal, responsive. Do not redesign. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --font-display: 'Enriqueta', serif;
    --font-body: 'Enriqueta', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* WIPE LAYER UI — full-page white reveal removed; project detail uses .pd-wipe-* compare slider */
.wipe-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.wipe-mask {
    display: none;
}

.ticker:hover .ticker-content {
    animation-play-state: paused;
}

.wipe-control {
    position: fixed;
    bottom: calc(20px + 15%);
    right: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.wipe-control:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border-color: #ffffff;
}

.wipe-control.active {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
}

body.wipe-active {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 2 L16 30 M2 16 L30 16' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 2 L16 30 M2 16 L30 16' stroke='black' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, auto !important;
}

.wipe-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-1px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: opacity 0.2s ease;
}

.wipe-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Utility to globally hide the wipe UI while keeping all logic and markup intact */
.wipe-hidden {
    display: none !important;
}

/* Utility for hiding in-progress page content while showing WIP messaging */
.wip-hidden {
    display: none !important;
}

/* Geometric Background - Keep animations identical */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
}

.shape {
    position: absolute;
    animation: float 25s infinite ease-in-out;
    will-change: transform;
}

.shape:nth-child(1) {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation-name: float1;
    animation-duration: 25s;
}

.shape:nth-child(2) {
    top: 60%;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform: rotate(45deg);
    animation-name: float2;
    animation-duration: 30s;
}

.shape:nth-child(3) {
    bottom: 20%;
    left: 15%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08));
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation-name: float3;
    animation-duration: 22s;
}

.shape:nth-child(4) {
    top: 30%;
    right: 30%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation-name: float4;
    animation-duration: 28s;
}

.shape:nth-child(5) {
    top: 15%;
    right: 20%;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-name: float5;
    animation-duration: 35s;
    animation-delay: -5s;
}

.shape:nth-child(6) {
    top: 40%;
    left: 0%;
    width: 400px;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    transform: rotate(-15deg);
    animation-name: float6;
    animation-duration: 40s;
    animation-delay: -10s;
}

.shape:nth-child(7) {
    bottom: 25%;
    right: 5%;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    animation-name: float7;
    animation-duration: 32s;
    animation-delay: -15s;
}

.shape:nth-child(7)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.shape:nth-child(8) {
    top: 25%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 40px -30px 0 rgba(255, 255, 255, 0.1), -30px 40px 0 rgba(255, 255, 255, 0.08), 60px 40px 0 rgba(255, 255, 255, 0.05);
    animation-name: float8;
    animation-duration: 20s;
    animation-delay: -8s;
}

.shape:nth-child(9) {
    bottom: 10%;
    left: 30%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-name: float9;
    animation-duration: 45s;
    animation-delay: -20s;
}

.shape:nth-child(10) {
    top: 50%;
    left: 60%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.03);
    filter: blur(1px);
    animation-name: float10;
    animation-duration: 25s;
    animation-delay: -12s;
}

.shape:nth-child(11) {
    top: 5%;
    left: 40%;
    width: 300px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    animation-name: float11;
    animation-duration: 38s;
    animation-delay: -3s;
}

.shape:nth-child(12) {
    top: 70%;
    right: 35%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation-name: float12;
    animation-duration: 30s;
    animation-delay: -18s;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(60px, -80px) rotate(90deg) scale(1.05);
    }

    50% {
        transform: translate(-40px, 60px) rotate(180deg) scale(1);
    }

    75% {
        transform: translate(80px, 40px) rotate(270deg) scale(0.95);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(45deg) scale(1);
    }

    33% {
        transform: translate(-80px, 100px) rotate(135deg) scale(1.1);
    }

    66% {
        transform: translate(60px, -60px) rotate(225deg) scale(0.9);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(100px, -60px) rotate(120deg);
    }

    50% {
        transform: translate(-60px, 100px) rotate(240deg);
    }

    75% {
        transform: translate(40px, 40px) rotate(360deg);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.1;
    }

    50% {
        transform: translate(60px, -100px) scale(1.3);
        opacity: 0.2;
    }
}

@keyframes float5 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    20% {
        transform: translate(-80px, 60px) rotate(72deg);
    }

    40% {
        transform: translate(60px, 100px) rotate(144deg);
    }

    60% {
        transform: translate(100px, -40px) rotate(216deg);
    }

    80% {
        transform: translate(-40px, -80px) rotate(288deg);
    }
}

@keyframes float6 {

    0%,
    100% {
        transform: translate(0, 0) rotate(-15deg);
    }

    50% {
        transform: translate(150px, 50px) rotate(-15deg);
    }

    75% {
        transform: translate(-50px, -30px) rotate(-5deg);
    }
}

@keyframes float7 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-60px, -80px) scale(1.2);
    }

    50% {
        transform: translate(80px, -40px) scale(0.8);
    }

    75% {
        transform: translate(40px, 80px) scale(1.1);
    }
}

@keyframes float8 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(120px, -60px);
    }

    50% {
        transform: translate(-80px, -100px);
    }

    75% {
        transform: translate(-120px, 40px);
    }
}

@keyframes float9 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(70px, -70px) rotate(120deg) scale(1.15);
    }

    66% {
        transform: translate(-70px, 50px) rotate(240deg) scale(0.85);
    }
}

@keyframes float10 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-100px, -100px) rotate(90deg);
    }

    50% {
        transform: translate(100px, 0) rotate(180deg);
    }

    75% {
        transform: translate(0, 100px) rotate(270deg);
    }
}

@keyframes float11 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    30% {
        transform: translate(80px, 40px) rotate(5deg);
    }

    60% {
        transform: translate(-60px, 80px) rotate(-5deg);
    }

    80% {
        transform: translate(40px, -40px) rotate(3deg);
    }
}

@keyframes float12 {

    0%,
    100% {
        transform: translate(0, 0) rotate(45deg) scale(1);
    }

    50% {
        transform: translate(-80px, 60px) rotate(225deg) scale(1.3);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    cursor: default;
}

a.logo {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-svg {
    flex-shrink: 0;
}

/* SVG logo animations */
.logo-hexagon {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawHexagon 2s ease-in-out forwards;
}

@keyframes drawHexagon {
    to {
        stroke-dashoffset: 0;
    }
}

.logo-triangle-up {
    opacity: 0;
    transform-origin: 20px 15px;
    animation: fadeScaleIn 0.8s ease-out 0.5s forwards;
}

.logo-triangle-down {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    opacity: 0;
    animation: drawTriDown 1.5s ease-in-out 1s forwards;
}

@keyframes drawTriDown {
    0% {
        opacity: 0;
        stroke-dashoffset: 60;
    }

    1% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

.logo-dot {
    transform-origin: 20px 20px;
    transform: scale(0);
    animation: fadeScaleIn 0.5s ease-out 1.5s forwards;
}

@keyframes fadeScaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-cb {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-primary);
}

.logo-workflow {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    margin: 0 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
    font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Desktop/tablet toolbar: avoid orphan wrapped nav rows; overlays sit below hero eyebrow */
@media (min-width: 1025px) {
    .nav-container {
        flex-wrap: nowrap;
    }

    .nav-links {
        flex-wrap: nowrap;
    }
}

@media (min-width: 1025px) and (max-width: 1320px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

.social-link {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.social-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.search-icon {
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon:hover {
    opacity: 0.6;
}

.ec-cart-widget-container {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ec-cart-widget-container:hover {
    transform: translateY(-2px);
}

.cart-icon-fallback {
    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.cart-icon-fallback svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 1.5;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-badge.visible {
    opacity: 1;
}

main {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.page {
    display: none;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero */
.hero {
    height: 90vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 2rem 5rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-visual-artist {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 0px;
    margin-bottom: 0;
    line-height: 0.9;
    color: #ffffff;
    animation: slideUp 1s ease-out;
    text-transform: none;
    /* Let the markup control casing */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    max-width: 400px;
    margin-top: 15rem;
    /* Push down relative to left content */
}

.hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideUp 1s ease-out 0.2s both;
    letter-spacing: 1px;
    line-height: 1.6;
}

/* Arrow Button Styling */
.view-work-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.view-work-arrow {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.1rem;
    display: inline-block;
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}

.view-work-btn:hover .view-work-arrow {
    animation: bounceRight 0.8s infinite ease-in-out;
}

.view-work-btn:active .view-work-arrow {
    transform: translateX(12px) scale(0.9);
    animation: none;
}

.cta-button {
    background: transparent;
    color: var(--text-primary);
    padding: 1.2rem 3rem;
    border: 1px solid var(--text-primary);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
    display: inline-block;
    text-align: center;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent);
    transition: width 0.4s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--bg-primary);
    border-color: var(--accent);
}

.cta-button:hover::before {
    width: 100%;
}

a.cta-button {
    text-decoration: none;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    line-height: 1;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 1px;
    max-width: 600px;
    line-height: 1.6;
}

.featured-section {
    padding: 8rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Store page layout (product grid in gallery.css) */
.store-page {
    padding: 8rem 3rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.store-header {
    margin-bottom: 5rem;
    text-align: center;
}

.store-header h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    letter-spacing: 6px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.store-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.dev-page {
    padding: 8rem 3rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-page {
    padding: 8rem 3rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.blog-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card-content {
    padding: 3rem;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: block;
}

.blog-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.blog-read-more {
    margin-top: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    border-bottom: 1px solid transparent;
    display: inline-block;
    transition: border-color 0.3s;
}

.blog-card:hover .blog-read-more {
    border-bottom-color: var(--text-primary);
}

.blog-card--static {
    cursor: default;
}

.blog-card--static:hover::before {
    transform: scaleX(0);
}

.blog-card--static:hover {
    border-color: var(--border-color);
}

a.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Long-form dev / journal article (single column, blog-style) */
.article-doc {
    box-sizing: border-box;
    max-width: 720px;
    margin: 0 auto;
    padding: 8rem clamp(1.25rem, 4vw, 3rem) 6rem;
}

.article-doc-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 2.5rem;
    transition: color 0.25s ease;
}

.article-doc-back:hover {
    color: var(--text-primary);
}

.article-doc-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-doc-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.article-doc-meta {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.article-doc-meta a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.article-doc-meta a:hover {
    color: var(--text-primary);
}

.article-doc-actions {
    margin: 0 0 2.75rem;
}

.article-doc-actions .cta-button {
    text-decoration: none;
}
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-doc-body h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 2.75rem 0 1rem;
    line-height: 1.25;
}

.article-doc-body h2:first-of-type {
    margin-top: 0;
}

.article-doc-body p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 1.15rem;
}

.article-doc-body ul {
    margin: 0 0 1.25rem 1.15rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.article-doc-body li {
    margin-bottom: 0.45rem;
}

.article-doc-callout {
    margin-top: 3rem;
    padding: 1.75rem 2rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 6px;
}

.article-doc-callout p {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.article-doc-callout .cta-button {
    margin-top: 0.25rem;
}

@media screen and (max-width: 768px) {
    .article-doc {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
}

.work-page {
    padding: 8rem 3rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-page {
    padding: 8rem 3rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-header-block {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 6rem;
}

.about-text-content {
    flex: 1;
    max-width: 800px;
}

.about-text-content h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    letter-spacing: 0px;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.about-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.about-text-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text-content p:last-child {
    margin-bottom: 0;
}

.about-image-wrapper {
    flex: 0 0 300px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.about-portrait-frame {
    width: 100%;
}

.about-portrait-frame picture,
.about-portrait-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.about-portrait-frame img {
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.about-columns-container {
    display: flex;
    gap: 6rem;
    margin-bottom: 6rem;
    max-width: 1000px;
}

.about-col {
    flex: 1;
}

.about-col h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-list li::before {
    content: "✓";
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.5;
}

.about-list.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

.about-store-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem;
    position: relative;
    border-radius: 8px;
}

.about-store-section h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-store-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-store-section p:last-child {
    margin-bottom: 0;
}

.highlight-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    margin-right: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

/* responsive overrides for about */
@media screen and (max-width: 768px) {
    .about-header-block {
        flex-direction: column;
    }

    .about-image-wrapper {
        flex: 1 1 auto;
        max-width: 360px;
        justify-content: flex-start;
    }

    .about-columns-container {
        flex-direction: column;
        gap: 3rem;
    }

    .about-store-section {
        padding: 2rem;
    }
}

.contact-page {
    padding: 8rem 3rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-email-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem 1rem;
    margin-bottom: 2rem;
}

.contact-email-row .contact-detail-value {
    overflow-wrap: anywhere;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.contact-form-section input,
.contact-form-section textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    margin-bottom: 2rem;
    transition: border-color 0.3s;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus {
    outline: none;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.contact-form-section textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-info-section .contact-resume-cta {
    margin-top: 2rem;
    min-width: 200px;
    padding: 1rem 3rem;
    text-align: center;
    box-sizing: border-box;
}

.contact-info-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-detail {
    margin-bottom: 1.5rem;
}

.contact-detail-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.contact-detail-value {
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.social-media-section {
    margin-bottom: 3rem;
}

.social-media-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.social-media-links {
    display: flex;
    gap: 1.5rem;
}

.social-media-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.social-media-link:hover {
    opacity: 0.7;
}

.availability-section .availability-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.availability-section .availability-value {
    font-family: var(--font-body);
    font-size: 0.95rem;
}

/* Home page sections */
.home-section {
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

.view-all-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link:hover {
    color: var(--text-primary);
}

.view-all-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.view-all-link:hover .view-all-arrow {
    transform: translateX(4px);
}

.home-store-grid {
    grid-template-columns: repeat(2, 1fr);
}

.home-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
}

/* Contact CTA */
.contact-cta-section {
    text-align: center;
    padding: 8rem 3rem 10rem;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.contact-cta-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.contact-cta-button {
    padding: 1.2rem 3rem;
}

/* Ticker */
.ticker {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 95vw;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    z-index: 999;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ticker-content {
    display: flex;
    width: max-content;
    animation: tickerScroll 200s linear infinite;
    will-change: transform;
    gap: 1rem;
    align-items: center;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: default;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ticker-symbol {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.ticker-value {
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
}

.ticker-change {
    font-size: 0.7rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.ticker-change.positive {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.ticker-change.negative {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.ticker-change::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    display: inline-block;
}

.ticker-change.positive::before {
    border-bottom: 4px solid #4ade80;
    border-top: none;
}

.ticker-change.negative::before {
    border-top: 4px solid #f87171;
    border-bottom: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* Margin overlays - Ping left, Time right */
.margin-overlay {
    position: fixed;
    top: 140px;
    z-index: 1001;
    font-family: var(--font-body);
    font-size: 13px;
    color: #00ff9d;
    background: rgba(0, 0, 0, 0.85);
    padding: 8px 14px;
    border-radius: 5px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 157, 0.35);
    pointer-events: none;
    user-select: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    opacity: 1;
    display: block !important;
}

#ping-left {
    left: 20px;
}

#time-right {
    right: 20px;
}

@media (min-width: 1025px) {
    .margin-overlay {
        top: 196px;
    }
}

.ping-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #00ff9d;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #00ff9d88;
    animation: pulse 2s infinite ease-in-out;
    vertical-align: middle;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* Responsive - Keep identical */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 3rem;
    }

    .wipe-control {
        bottom: calc(60px + 15%);
        right: 10px;
        font-size: 11px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        margin: 1rem 0;
    }

    .hero h1 {
        font-size: 3.5rem;
        letter-spacing: 4px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .store-header h1 {
        font-size: 3rem;
    }

    .featured-section,
    .store-page,
    .blog-page,
    .work-page,
    .about-page,
    .contact-page {
        padding: 4rem 1.5rem;
    }

    .blog-card-content,
    .store-product-content {
        padding: 2rem;
    }

    .margin-overlay {
        font-size: 11px;
        padding: 6px 12px;
    }

    #ping-left {
        left: 10px;
    }

    #time-right {
        right: 10px;
    }

    .ticker {
        bottom: 10px;
        padding: 0.5rem 1rem;
        border-radius: 30px;
    }

    .ticker-item {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .ticker-content {
        animation-duration: 300s;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .wipe-control {
        bottom: calc(50px + 15%);
        right: 10px;
        font-size: 10px;
        padding: 6px 12px;
    }

    .home-store-grid,
    .home-blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta-section {
        padding: 5rem 1.5rem 8rem;
    }

    .home-section {
        padding-top: 4rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .margin-overlay {
        display: none !important;
    }

    .ticker {
        display: none;
    }

    .wipe-control {
        bottom: calc(20px + 15%);
        right: 10px;
        font-size: 9px;
        padding: 5px 10px;
    }
}

.ec-store {
    background: var(--bg-primary) !important;
}

/* Responsive Navigation */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.mobile-menu-toggle.active {
    transform: rotate(90deg);
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        /* Default hidden */
        position: absolute;
        /* Relative to fixed nav */
        top: 100%;
        /* Starts exactly at bottom of nav */
        left: 0;
        width: 100%;
        height: 100vh;
        /* Full screen height fallback */
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top */
        padding-top: 2rem;
        /* Add padding since we're not centering */
        align-items: center;
        gap: 2rem;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex !important;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Row 1: logo + social + cart • Row 2: menu toggle + search (full remaining width) */
    .nav-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        column-gap: 0.5rem;
        row-gap: 0.65rem;
        align-items: center;
        justify-items: stretch;
        flex-wrap: unset;
        justify-content: unset;
    }

    .nav-actions {
        display: contents;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    /* Descendant selectors: .nav-actions uses display:contents, so these are not direct children of .nav-container */
    .nav-container .social-links {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }

    .nav-container .ec-cart-widget-container {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        justify-self: end;
    }

    .nav-container .mobile-menu-toggle {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        align-self: center;
    }

    .nav-container .search-wrapper {
        grid-column: 2 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .nav-container .search-wrapper #search-input {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    main {
        padding-top: 118px;
    }

    .margin-overlay {
        top: 128px;
    }

    /* Hero stacks on narrow viewports — prevents right column clipping */
    .hero {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        height: auto;
        min-height: unset;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        max-width: 100%;
    }

    .hero-left {
        width: 100%;
        max-width: 100%;
    }

    .hero-right {
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
        width: 100%;
        margin-top: 1.75rem;
    }

    .hero h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
        box-sizing: border-box;
        padding-right: env(safe-area-inset-right, 0px);
    }
}

/* Site Footer */
.site-footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 6rem 3rem 6rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--text-primary);
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a,
.footer-col p a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover,
.footer-col p a:hover {
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    outline: none;
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: #39b5bd;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #2a9ba3;
}

.newsletter-note {
    font-size: 0.75rem;
    color: #888;
}

.footer-bottom {
    max-width: 1400px;
    margin: 4rem auto 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: var(--text-secondary);
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Footer */
@media screen and (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .newsletter-col {
        grid-column: 1 / -1;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Journal article (Figma layout) */
.journal-article {
    box-sizing: border-box;
    max-width: 780px;
    margin: 0 auto;
    padding: 8rem clamp(1.25rem, 4vw, 3rem) 6rem;
}

.journal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 3rem;
    transition: color 0.25s ease;
}

.journal-back-link:hover {
    color: var(--text-primary);
}

.journal-article-header {
    margin-bottom: 3rem;
}

.journal-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.journal-article-category {
    color: #6fbf73;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.journal-article-dot {
    opacity: 0.5;
}

.journal-article-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.journal-article-subtitle {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

.journal-article-rule {
    display: block;
    width: 40px;
    height: 2px;
    background: #6fbf73;
    opacity: 0.8;
}

.journal-article-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 1.25rem;
}

.journal-article-body h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 2.75rem 0 1rem;
    line-height: 1.25;
}

.journal-article-body ul {
    margin: 0 0 1.25rem 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.journal-article-body li {
    margin-bottom: 0.45rem;
}

.journal-article-figure {
    margin: 2.5rem 0;
}

.journal-article-figure picture {
    display: block;
}

.journal-article-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: min(85vh, 900px);
    object-fit: cover;
    border-radius: 6px;
}

.journal-article-figure figcaption {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-align: center;
}

.journal-article-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 4rem 0 3rem;
}

.journal-article-related h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    color: var(--text-primary);
}

/* Continue browsing: same “view more work” cards as project-detail (pd-more-card) */
.journal-article-related.pd-view-more {
    border-top: none;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.journal-article-related.pd-view-more .pd-more-projects {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    grid-template-columns: repeat(2, 1fr);
}

.journal-article-related.pd-view-more h2 {
    text-align: center;
}

.journal-article-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.journal-related-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.journal-related-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.journal-related-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.journal-related-meta {
    padding: 0.75rem 1rem 0;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #6fbf73;
    text-transform: uppercase;
}

.journal-related-title {
    padding: 0.25rem 1rem 1rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .journal-article {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .journal-article-related-grid {
        grid-template-columns: 1fr;
    }

    .journal-article-related.pd-view-more .pd-more-projects {
        grid-template-columns: 1fr;
    }
}