@font-face {
    font-family: "Anicons Regular";
    src: url(assets/fonts/AniconsGX.ttf);
}

@font-face {
    font-family: "Anicons Regular";
    src: url(assets/fonts/AniconsGX.ttf);
}

:root {
    /* 1. Primitive Tokens */

    /* Color */
    --color-black-900: #0E0E10;
    --color-black-800: #16161A;
    --color-white-100: #FAFAF8;
    --color-white-200: #F0F0EC;
    --color-accent-500: #C96A3A;

    /* Typography */
    --font-display: "Playfair Display", serif;
    /* Placeholder, suggest updating */
    --font-body: "Inter", sans-serif;
    /* Placeholder, suggest updating */
    --font-mono: "Courier Prime Sans", monospace;
    /* Using existing font or standard mono */

    /* Font Sizes (Desktop) */
    --fs-hero: 3.5rem;
    /* ~56px reduced from 4.5rem to fit viewport */
    --fs-h1: 3rem;
    /* ~48px */
    --fs-h2: 2rem;
    /* ~32px */
    --fs-body: 1.125rem;
    /* ~18px */
    --fs-small: 0.75rem;
    /* ~12px */

    /* Line Heights */
    --lh-tight: 1.05;
    --lh-normal: 1.5;

    /* 2. Semantic Tokens */

    /* Text */
    --text-primary: var(--color-black-900);
    --text-secondary: rgba(14, 14, 16, 0.85);
    --text-muted: rgba(14, 14, 16, 0.55);

    /* Backgrounds */
    --bg-primary: var(--color-white-100);
    --bg-secondary: var(--color-white-200);

    /* Accent */
    --accent-primary: var(--color-accent-500);

    /* 3. Layout & Grid Tokens */

    /* Spacing Scale (8px system) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;
    --space-8: 128px;
    --space-9: 192px;
    --space-10: 256px;

    /* Grid Tokens */
    --grid-columns-desktop: 12;
    --grid-columns-tablet: 8;
    --grid-columns-mobile: 4;

    --grid-gutter-desktop: 32px;
    --grid-gutter-tablet: 24px;
    --grid-gutter-mobile: 16px;

    --grid-margin-desktop: 64px;
    --grid-margin-tablet: 48px;
    --grid-margin-mobile: 24px;

    /* Blueprint Overlay Grid */
    --blueprint-unit-desktop: 80px;
    --blueprint-unit-tablet: 64px;
    --blueprint-unit-mobile: 48px;
    --blueprint-stroke: 1px;
    --blueprint-opacity: 0.06;

    /* 4. Motion Tokens */
    --motion-fast: 200ms;
    --motion-normal: 300ms;
    --motion-slow: 900ms;
    /* Slowed down for curve */
    --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-linear: linear;
}

/* --- MOTION UTILITIES --- */

@media (prefers-reduced-motion: no-preference) {

    /* Base Reveal Class */
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard);
        will-change: opacity, transform;
    }

    /* Active State */
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger Delays */
    .stagger-delay-1 {
        transition-delay: 100ms;
    }

    .stagger-delay-2 {
        transition-delay: 200ms;
    }

    .stagger-delay-3 {
        transition-delay: 300ms;
    }

    .stagger-delay-4 {
        transition-delay: 400ms;
    }

    /* Specific Curve Animation */
    .organic-curve path {
        stroke-dasharray: 2000;
        /* Approximate length */
        stroke-dashoffset: 2000;
        transition: stroke-dashoffset 1.2s var(--ease-standard);
    }

    .organic-curve path.draw-active {
        stroke-dashoffset: 0;
    }
}

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--ink-color);
    outline-offset: 4px;
}

html {
    color-scheme: light;
    --page-color: var(--gold7);
    --ink-color: var(--gold1);
    --nav-ink-color: var(--gold2);
    --nav-bg-color: var(--gold6);
    --card-background: var(--gold6);
    --card-inset: hsl(33, 60%, 97%);
    --highlight-color: var(--dark-red);
    --nav-highlight-color: var(--gold1);
    --nav-inset: var(--gold7);
    accent-color: var(--highlight-color);

    --shape-color: var(--gold3);

    --service-item-bg: var(--gold3);
    --service-item-inset: var(--gold4);
    --service-item-bg-hover: var(--gold4);
    --service-item-inset-hover: var(--gold5);
    --service-item-text-color: var(--gold6);
    --service-item-text-color-hover: var(--gold2);

    /* Prevent font size inflation */
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;

    /* Scaling font-size per device width */
    font-size: clamp(1rem, 0.75rem + 1.5vw, 2rem);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Invert Semantic Tokens for Dark Mode */
        --text-primary: var(--color-white-100);
        --text-secondary: rgba(250, 250, 248, 0.85);
        --text-muted: rgba(250, 250, 248, 0.55);

        --bg-primary: var(--color-black-900);
        --bg-secondary: var(--color-black-800);
    }
}

h1 {
    line-height: 1.1;
}

/* Set shorter line heights on headings and interactive elements */
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.618;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

h1 {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: 400;
}

h2 {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 400;
}

/* Inherit font for inputs and buttons */
input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

img,
video,
iframe {
    max-inline-size: 100%;
    block-size: auto;
    aspect-ratio: attr(width) / attr(height);
}

svg {
    stroke: var(--text-primary);
    fill: var(--text-primary);
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
}



header {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--fs-h1);
    position: relative;
    z-index: 100;
    box-shadow: 0 8px 18px hsla(0, 0%, 0%, .1);
}

@media (min-width: 48em) {
    header {
        box-shadow: none;
    }
}

#header-img {
    width: var(--header-img-width, 5em);
    height: auto;
    object-fit: contain;
    padding: 0;
    margin-inline-start: var(--header-img-margin-is, 2rem);
    margin-block-start: var(--header-img-margin-bs, 1rem);
    filter: brightness(0%) saturate(100%) invert(21%) sepia(6%) saturate(5372%) hue-rotate(357deg) brightness(95%) contrast(78%);
}

@media (prefers-color-scheme: dark) {
    #header-img {
        filter: brightness(0%) saturate(100%) invert(94%) sepia(6%) saturate(1501%) hue-rotate(319deg) brightness(106%) contrast(103%);
    }
}

a.header-a {
    text-decoration: none;
    margin: 0;
    padding: 0;
}

nav {
    background-color: var(--nav-bg-color);
    color: var(--nav-ink-color);
    position: var(--nav-position, fixed);
    inset-block-start: var(--s7);
    inset-inline-end: var(--s9);
    margin-inline-start: var(--nav-margin-inline-start, auto);
    justify-content: var(--nav-align-itmes, auto);
    box-shadow: inset 0 2px 0 var(--nav-inset), 0 8px 18px hsla(0, 0%, 0%, .5);
    border-radius: 10px;
    z-index: 100;
}

@media (min-width: 48em) {
    nav {
        display: flex;
        --nav-button-display: none;
        --nav-position: static;
        --nav-align-itmes: center;
        border-radius: 0px;
        box-shadow: none;
    }

    nav>ul {
        --nav-list-layout: row;
        --nav-list-position: static;
        --nav-list-padding: 0;
        --nav-list-height: auto;
        --nav-list-width: max-content;
        --nav-list-shadow: none;
        --nav-list-transform: none;
        --nav-list-visibility: visible;
        --nav-margin-inline-start: var(--s9);
    }

    header {
        display: flex;
        justify-content: center;
    }

    #header-img {
        --header-img-width: 10em;
        --header-img-margin-is: 0;
        --header-img-margin-bs: 0;
    }
}

article {
    max-inline-size: 66ch;
    margin: auto;
    line-height: 1.65;
}

blockquote {
    max-inline-size: 45ch;
    line-height: 2;
}

button {
    all: unset;
    display: var(--nav-button-display, flex);
    position: relative;
    overflow: hidden;
    width: 2rem;
    height: 2rem;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.ps-list {
    list-style: none;
    line-height: 2;
}

#nav-svg {
    fill: var(--nav-ink-color);
    stroke: var(--nav-ink-color);
}

a {
    --text-color: var(--nav-ink-color);
    text-decoration: none;
    color: var(--text-color);
    margin-block-end: 0;
    margin-inline-end: var(--s3);
    padding: var(--s1);
    border-block-end: 3px solid var(--border-color, transparent);
    display: inline-block;
}

a:where(:hover, :focus) {
    --border-color: var(--text-color)
}

/* Legacy nav styles removed */

main {
    padding: var(--box-size-padding);
}







#hero-section {
    display: flex;
    position: relative;
    min-height: 100vh;
    /* Allow growth */
    align-items: center;
    /* Vertically center content */
    padding-inline-start: var(--grid-margin-desktop);
    /* Align with outer grid margin */
    padding-block: var(--space-6);
    /* Safe zone for metadata */
    background-color: var(--bg-primary);
    /* Solid background per spec */
    overflow: hidden;
    /* Restored to clip background artifacts */
    z-index: 1;
}

@media (min-width: 48em) {
    #hero-section {
        min-height: 100vh;
    }
}

/* 2. Blueprint Grid Overlay */
.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;

    /* 80px grid pattern using gradients */
    background-size: var(--blueprint-unit-desktop) var(--blueprint-unit-desktop);
    background-image:
        linear-gradient(to right, var(--text-primary) 1px, transparent 1px),
        linear-gradient(to bottom, var(--text-primary) 1px, transparent 1px);
    opacity: var(--blueprint-opacity);

    /* Offset grid slightly as per spec */
    /* transform: translate(24px, 32px); REMOVED: Causes margin issues */
    background-position: 24px 32px;
}

@media (max-width: 48em) {
    .blueprint-grid {
        background-size: var(--blueprint-unit-tablet) var(--blueprint-unit-tablet);
    }
}

@media (max-width: 30em) {
    .blueprint-grid {
        background-size: var(--blueprint-unit-mobile) var(--blueprint-unit-mobile);
        opacity: 0.03;
        /* Lower opacity on mobile */
    }
}

/* 3. Organic Curve */
.organic-curve-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Behind text (handled by DOM order usually but ensuring it doesn't block) */
    pointer-events: none;
    opacity: 0.7;
}

.organic-curve {
    width: 100%;
    height: 100%;
    /* Ensure aspect ratio is preserved but covers area */
    display: block;
}

/* 4. Text Content Block */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 66%;
    /* Approx 8 columns */
    /* Remove huge top padding which pushes content below fold when centered */
    /* padding-top: var(--space-8); */
    padding-bottom: var(--space-5);
    /* Lift slightly above center */
}

@media (max-width: 48em) {
    .hero-content {
        max-width: 100%;
        padding-inline-end: var(--grid-margin-mobile);
        /* Ensure top metadata doesn't overlap on short screens if content floats up */
        padding-top: var(--space-6);
    }
}

.hero-title {
    margin-block-start: 0;
    margin-block-end: var(--space-3);
    /* Reduced from space-4 */
    /* Ensure text sits on grid roughly */
}

.hero-subhead {
    max-width: 80%;
    margin-block-end: var(--space-3);
    /* Reduced from space-4 */
    opacity: 0.9;
}

/* 5. CTAs */
.hero-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

@media (max-width: 30em) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 6. Technical Metadata */
.hero-metadata {
    position: fixed;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    /* ~12px */
    letter-spacing: 0.06em;
    color: var(--text-primary);
    opacity: 0.5;
    z-index: 100;
}

.hero-metadata.top-left {
    top: 5rem;
    /* Clears the Nav */
    left: var(--space-4);
}

.hero-metadata.top-right {
    top: 5rem;
    /* Clears the Nav */
    right: var(--space-4);
}

.hero-metadata.bottom-left {
    bottom: var(--space-4);
    left: var(--space-4);
}

@media (max-width: 30em) {

    .hero-metadata.top-left,
    .hero-metadata.top-right {
        display: none;
    }
}

.hero-metadata.bottom-right {
    bottom: var(--space-4);
    right: var(--space-4);
}



#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}



.FolioCard {
    background: var(--card-background);
    padding: var(--s3);
    border: none;
    text-align: center;
    flex: 1 1 calc(50% - 40px);
    max-width: calc(50% - 40px);
    background: var(--dark-grey);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s, z-index 0.3s;
    line-height: 1.6;
}

.FolioCard:hover {
    transform: translateY(-10px);
    filter: brightness(1.1);
    z-index: 10;
}

.FolioCard img {
    width: 100%;
    height: 30%;
    object-fit: contain;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

}

.FolioCard-content {
    padding: var(--s4);
    text-align: left;
    font-size: var(--fs3);
}

.FolioCard-divider {
    border: none;
    border-top: 1px solid white;
    margin: var(--s2) 0;
}

.client-name,
.client-location,
.project-type,
.project-summary {
    color: white;
}

.client-name {
    font-size: var(--fs6);
    font-weight: bold;
    margin: var(--s3) 0;
}

.client-location {
    font-size: var(--fs3);
    font-style: italic;
    margin: var(--s2) 0;
}

.project-type {
    font-size: var(--fs4);
    font-weight: bold;
    margin: var(--s3) 0;
}

.project-summary {
    font-size: var(--fs3);
    margin: var(--s3) 0;
}

.link {
    color: white;
    text-decoration: none;
    position: relative;
    padding: 0;
}

.FolioCard:hover .link::after {
    width: 100%;
    left: 0;
}

.link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 1px;
    right: 0;
    background: white;
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

@media (min-width: 769px) {
    .FolioCard {
        flex: 1 1 calc(50% - 40px);
        max-width: calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .FolioCard {
        flex: 1 1 100%;
        max-width: 100%;
    }
}



.anicon {
    font-family: "Anicons Regular", sans-serif;
    font-variation-settings: "TIME" 1;
    transition: font-variation-settings 0.4s ease;

}

.anicon:hover {
    font-variation-settings: "TIME" 100;
}

.anicon {
    font-family: "Anicons Regular", sans-serif;
    font-variation-settings: "TIME" 1;
    transition: font-variation-settings 0.4s ease;

}

.anicon:hover {
    font-variation-settings: "TIME" 100;
}



/* 6. Core Components (Derived from Hero) */

.heading-display {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    line-height: var(--lh-tight);
    color: var(--text-primary);
}

.body-text {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--text-secondary);
}

.button-primary {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    transition: background var(--motion-fast) var(--ease-standard);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.button-primary:hover {
    background-color: var(--bg-secondary);
    /* no scale, no shadow as per rules */
}

.secondary-action {
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 1px solid transparent;
    transition: border-bottom-color var(--motion-fast) var(--ease-standard);
}

.secondary-action:hover {
    border-bottom-color: var(--text-secondary);
    text-decoration: none;
}

.annotation {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.accent-stroke {
    stroke: var(--accent-primary);
    opacity: 0.7;
    fill: none;
}

/* =========================================
   7. Selected Work Section
   ========================================= */

#selected-work {
    position: relative;
    padding-inline: var(--grid-margin-desktop);
    padding-block: var(--space-8);
    background-color: var(--bg-primary);
    /* Ensure layering */
    z-index: 1;
}

#selected-work .blueprint-grid {
    /* Reuse grid but position relative to this section */
    /* opacity matches hero (defined in .blueprint-grid) */
    z-index: -1;
}

@media (max-width: 48em) {
    #selected-work {
        padding-inline: var(--grid-margin-tablet);
        padding-block: var(--space-7);
    }
}

@media (max-width: 30em) {
    #selected-work {
        padding-inline: var(--grid-margin-mobile);
        padding-block: var(--space-6);
    }

    #selected-work .blueprint-grid {
        opacity: 0.1;
        /* Reduced opacity on mobile */
    }
}

/* Header */
.section-header {
    margin-bottom: var(--space-6);
    max-width: 50%;
    /* Approx 6 cols */
}

.section-subhead {
    margin-top: var(--space-2);
    /* inherit body text styles */
}

@media (max-width: 48em) {
    .section-header {
        max-width: 100%;
    }
}

/* Preview Grid */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gutter-desktop);
    margin-bottom: var(--space-7);
}

@media (max-width: 48em) {
    .preview-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: var(--grid-gutter-tablet);
    }
}

@media (max-width: 30em) {
    .preview-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
}

/* Project Preview Component */
.project-preview {
    grid-column: span 6;
    /* 2 items per row on desktop */
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.project-preview:hover .project-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

@media (max-width: 48em) {
    .project-preview {
        grid-column: span 4;
        /* 2 items per row on tablet */
    }
}

.project-artifact {
    aspect-ratio: 4/3;
    width: 100%;
    object-fit: cover;
    /* Ensure image fills container */
    background-color: var(--bg-secondary);
    /* Fallback */
    /* Add border or subtle definition if needed, but per spec "No cards, no shadows" */
}

.project-title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 400;
    line-height: var(--lh-tight);
    color: var(--text-primary);
    margin: 0;
}

.project-framing {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--text-primary);
    margin: 0;
}

.project-tags {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section Footer (End CTA) */
.section-footer {
    display: flex;
    padding-top: var(--space-4);
}

.section-footer a {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.section-footer a:hover {
    border-bottom-color: var(--text-primary);
}

/* =========================================
   8. New Below-Fold Sections
   ========================================= */

/* Shared Section Styles */
.content-section {
    position: relative;
    padding-inline: var(--grid-margin-desktop);
    padding-block: var(--space-8);
    background-color: var(--bg-primary);
    z-index: 1;
    /* Above background elements */
}

@media (max-width: 48em) {
    .content-section {
        padding-inline: var(--grid-margin-tablet);
        padding-block: var(--space-7);
    }
}

@media (max-width: 30em) {
    .content-section {
        padding-inline: var(--grid-margin-mobile);
        padding-block: var(--space-6);
    }
}

/* --- Where We Step In --- */
#where-we-step-in {
    padding-top: var(--space-9);
    /* Extra top padding per spec */
}

#where-we-step-in .blueprint-grid {
    z-index: -1;
    opacity: 0.05;
    /* Revert to 4-5% per spec */
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
    /* Slight fade in at top */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
}

.intervention-stack {
    display: flex;
    flex-direction: column;
    gap: 48px;
    /* 40-48px per spec */
    margin-top: var(--space-7);
}

.intervention-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Desktop: 2 column micro layout */
    gap: var(--grid-gutter-desktop);
    /* Optional Interaction */
    transition: opacity 0.2s ease;
}

.intervention-left {
    display: flex;
    gap: 16px;
    /* Marker spacing */
    align-items: baseline;
}

.intervention-marker {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    opacity: 0.6;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.intervention-title {
    font-family: var(--font-body);
    font-size: var(--fs-h4);
    /* Slightly larger than body */
    color: var(--text-primary);
    margin: 0;
    line-height: var(--lh-tight);
}

.intervention-right {
    display: flex;
    align-items: baseline;
}

.intervention-explanation {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--text-muted);
    /* Muted body text */
    margin: 0;
    max-width: 90%;
    transition: color 0.2s ease;
}

/* Interaction */
.intervention-block:hover .intervention-marker {
    opacity: 1;
    /* Brighten marker */
}

.intervention-block:hover .intervention-explanation {
    color: var(--text-primary);
    /* Increase contrast */
}


@media (max-width: 48em) {
    .intervention-block {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .intervention-explanation {
        padding-left: 24px;
        /* Align with title visually */
        max-width: 100%;
    }
}

@media (max-width: 30em) {
    #where-we-step-in .blueprint-grid {
        opacity: 0.02;
    }
}

/* --- How We Work --- */
#how-we-work {
    background-color: var(--bg-primary);
    padding-block: var(--space-9);
    /* Maximum whitespace */
    border-top: 1px solid var(--border-subtle);
    /* Optional subtle divider per spec */
}

.how-content {
    max-width: 60%;
    /* Narrow width for focus */
    margin-inline: auto;
    /* Centered */
    text-align: left;
    /* Or center, but spec says "Centered or left-aligned" */
}

.how-header {
    font-family: var(--font-body);
    /* Muted body font, NOT display */
    font-size: var(--fs-body);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    font-weight: 400;
}

.how-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    /* Large vertical spacing */
}

.how-body .body-text {
    font-size: var(--fs-h4);
    /* Slightly larger reading size */
    line-height: var(--lh-relaxed);
    color: var(--text-primary);
    max-width: 100%;
}

.how-statement {
    font-family: var(--font-body);
    font-size: var(--fs-h3);
    /* Slightly larger */
    line-height: var(--lh-tight);
    color: var(--text-primary);
    margin-top: var(--space-4);
    /* No bold, let spacing do the work */
}

@media (max-width: 48em) {
    .how-content {
        max-width: 100%;
    }

    .how-body .body-text {
        font-size: var(--fs-body);
        /* Normal size on mobile */
    }

    .how-statement {
        font-size: var(--fs-h4);
    }
}

/* --- Ways We Work --- */
#ways-we-work .blueprint-grid {
    z-index: -1;
    opacity: 0.06;
    /* 5-6% as per spec */
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    /* Slight vertical fade */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.ways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gutter-desktop);
    margin-top: var(--space-6);
}

.ways-panel {
    /* Technical Panel */
    display: flex;
    flex-direction: column;
    /* Optional hover behavior */
    transition: opacity 0.2s ease;
}

.ways-panel:hover .panel-rule {
    background-color: var(--text-primary);
    /* Darken rule on hover */
}

.ways-panel:hover .panel-title {
    opacity: 1;
    /* Slight contrast bump if needed, or keep standard */
    color: var(--text-primary);
}

.panel-title {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    color: var(--text-primary);
    margin-bottom: 12px;
    /* Precise spacing */
    transition: color 0.2s ease;
}

.panel-rule {
    height: 1px;
    background-color: var(--text-muted);
    /* Grid colorish */
    margin-bottom: 24px;
    width: 100%;
    transition: background-color 0.2s ease;
    opacity: 0.5;
}

.panel-description {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: var(--lh-relaxed);
}

.panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* 8-12px per spec */
    margin-bottom: 24px;
}

.panel-list li {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--text-muted);
}

.panel-best-for {
    font-family: var(--font-mono);
    /* Technical vibe */
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-top: auto;
    /* Push to bottom if height fixed, though auto flows fine here */
}

@media (max-width: 48em) {
    .ways-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 30em) {
    .ways-grid {
        grid-template-columns: 1fr;
    }

    #ways-we-work .blueprint-grid {
        opacity: 0.02;
        /* Nearly invisible on mobile */
    }
}

/* --- About / Philosophy --- */
#about-philosophy {
    padding-top: 128px;
    /* Large pause before this section */
    padding-bottom: 96px;
    background-color: var(--bg-primary);
    /* Clean base */
}

.about-content {
    max-width: 50%;
    /* Max 5-6 columns, keeping it narrow and serious */
    margin-inline: auto;
    /* Centered */
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align CTA left relative to text block */
}

.about-header {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    /* Footnote-like */
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* 32-40px spacing */
    margin-bottom: 64px;
    /* Space before CTA */
}

.about-text {
    font-size: var(--fs-h4);
    /* Slightly larger than body */
    line-height: var(--lh-relaxed);
    color: var(--text-primary);
    max-width: 100%;
}

.about-content .text-link {
    font-size: var(--fs-body);
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.about-content .text-link:hover {
    border-color: var(--text-primary);
}

.text-link-inline {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.text-link-inline:hover {
    color: var(--accent-primary);
}

@media (max-width: 48em) {
    .about-content {
        max-width: 100%;
        padding-inline: var(--grid-margin-mobile);
        align-items: flex-start;
    }

    #about-philosophy {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }

    .about-text {
        font-size: var(--fs-body);
    }
}

/* --- Final Conversion --- */
#final-conversion {
    text-align: center;
    padding-block: 128px;
    /* Max breathing room */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conversion-title {
    font-family: var(--font-body);
    /* Body font, not display */
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.conversion-body {
    max-width: 50%;
    margin-bottom: 64px;
    /* Space before actions */
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.conversion-body .body-text {
    font-size: var(--fs-h4);
    line-height: var(--lh-relaxed);
    color: var(--text-primary);
}

.conversion-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.button-start-project {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--text-primary);
    background-color: transparent;
    border: 1px solid var(--text-primary);
    /* Thin border */
    text-decoration: none;
    transition: all 0.2s ease;
}

.button-start-project:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.reassurance-text {
    display: flex;
    gap: 24px;
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* --- VISUAL REFINEMENT --- */

/* 1. Hero Artifact */
.hero-artifact-bg {
    position: absolute;
    top: -20%;
    left: -10%;
    font-family: 'Courier Prime', monospace;
    /* Technical font */
    font-size: 12rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.04;
    /* Very faint */
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* 2. Where We Step In - Callout Rules */
.intervention-block {
    position: relative;
    padding-left: 24px;
    /* Space for rule */
}

.intervention-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--text-muted);
    opacity: 0.2;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.intervention-block:hover::before {
    opacity: 1;
    background-color: var(--accent-primary);
}

/* 3. Section Dividers (How We Work & About) */
.section-label {
    font-family: 'Courier Prime', monospace;
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
    margin-bottom: var(--space-6);
    display: inline-block;
    width: auto;
}

/* 4. Ways We Work - Rhythm & Rules */
.ways-panel {
    position: relative;
    padding-left: 24px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    /* Use rgba for theme compatibility or semantic var if available, 
       but border-subtle might be too strong? text-muted opacity? */
    border-left: 1px solid var(--border-subtle);
}

/* Stagger panels vertically */
.ways-panel:nth-child(2) {
    margin-top: 32px;
}

.ways-panel:nth-child(3) {
    margin-top: 64px;
}

/* 5. Selected Work - Assertive Artifacts */
.project-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    /* 4:3 Aspect Ratio */
    background-color: var(--bg-tertiary);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border-subtle);
}

.project-artifact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-overlay span {
    font-family: 'Courier Prime', monospace;
    font-size: var(--fs-small);
    color: var(--bg-primary);
    /* Use background color for text on dark overlay */
    background-color: var(--text-primary);
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.project-preview:hover .project-artifact {
    transform: scale(1.03);
}

.project-preview:hover .project-overlay {
    opacity: 1;
}

.project-preview:hover .project-overlay span {
    transform: translateY(0);
}

/* 7. Final Conversion - Soft Container */
#final-conversion {
    border-top: 1px solid var(--border-subtle);
    width: 100%;
    /* Ensure border spans width if needed, or stick to container logic */
}

/* Re-apply final conversion overrides */
.contact-alt {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-top: 16px;
}

.contact-alt a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--text-muted);
}

@media (max-width: 48em) {

    /* Reset offsets on mobile */
    .ways-panel:nth-child(2),
    .ways-panel:nth-child(3) {
        margin-top: 0;
    }

    .hero-artifact-bg {
        font-size: 6rem;
        top: 0;
    }

    .conversion-body {
        max-width: 90%;
    }

    .reassurance-text {
        flex-direction: column;
        /* Stack on mobile */
        gap: 8px;
        align-items: center;
    }
}

/* --- NAVIGATION --- */

#main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding-inline: var(--grid-margin-desktop);
    padding-block: 24px;
    transition: background-color 0.3s ease, padding 0.3s ease, border-bottom 0.3s ease;
}

#main-nav.nav-sticky {
    position: fixed;
    background-color: var(--bg-primary);
    padding-block: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Force full width */
    max-width: 100%;
}

.nav-logo {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--fs-body);
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
    z-index: 1001;
    /* Above mobile overlay */
    position: relative;
    margin-right: auto;
    /* Force push to left */
}

.nav-links {
    display: flex;
    gap: 64px;
    align-items: center;
    /* Increased from 48px */
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    /* ~15px */
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
}

/* Nav CTA (Button Look) */
.nav-cta,
a.nav-cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    /* Optional: rounded corners like button-primary if it had them, but button-primary is square? Check line 779 */
    /* button-primary definition at 779 has no border-radius. Let's match strict button-primary or keep it square. User said "same button look". */
    /* button-primary: border 1px solid var(--text-primary); background: transparent; */
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: var(--space-2);
}

.nav-cta:hover,
a.nav-cta:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    /* Inverted hover for strong CTA */
    text-decoration: none;
}

/* Reset hover underline for CTA */
.nav-links .nav-cta::after {
    display: none;
}

/* Hover Effect: Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.2s ease;
}

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    /* Reset default button padding for alignment */
    z-index: 1001;
    position: relative;
    /* Override global button fixed size */
    width: auto;
    height: auto;
    overflow: visible;
}

/* Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.body-no-scroll {
    overflow: hidden;
}

.mobile-menu-overlay.menu-active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}

.mobile-menu-links a {
    font-family: var(--font-body);
    font-size: var(--fs-h2);
    color: var(--text-primary);
    text-decoration: none;
}

.mobile-cta {
    margin-top: 32px;
    border-bottom: 2px solid var(--text-primary);
    /* Featured link style */
    display: inline-block;
}

/* Responsive */
@media (max-width: 48em) {
    #main-nav {
        padding-inline: var(--grid-margin-tablet);
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

@media (max-width: 30em) {
    #main-nav {
        padding-inline: var(--grid-margin-mobile);
    }
}

/* --- Footer --- */
#main-footer {
    padding-inline: var(--grid-margin-desktop);
    padding-block: var(--space-6);
    background-color: var(--bg-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-4);
}

.footer-links a {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--text-primary);
    text-decoration: none;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.footer-meta a {
    color: var(--text-primary);
    text-decoration: none;
}

@media (max-width: 48em) {
    #main-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
        padding-inline: var(--grid-margin-tablet);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-2);
    }

    .footer-meta {
        align-items: flex-start;
    }
}

@media (max-width: 30em) {
    #main-footer {
        padding-inline: var(--grid-margin-mobile);
    }
}

/* --- CASE STUDY STYLES --- */

/* Hero */
.cs-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-inline: var(--grid-margin-desktop);
    background-color: var(--bg-primary);
    overflow: hidden;
}

.cs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
    margin-top: var(--space-8);
}

.cs-hero-meta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.cs-meta-item {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cs-title {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    line-height: 1.1;
    margin-bottom: var(--space-4);
    font-weight: 400;
}

.cs-framing {
    font-family: var(--font-body);
    font-size: var(--fs-h3);
    line-height: 1.4;
    max-width: 38ch;
}

/* Sections */
.cs-section {
    padding-inline: var(--grid-margin-desktop);
}

.cs-section-label {
    grid-column: 1 / span 3;
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.cs-section-body {
    grid-column: 4 / span 8;
}

.cs-intent-intro {
    font-family: var(--font-body);
    font-size: var(--fs-lead);
    margin-bottom: var(--space-4);
}

/* Lists */
.cs-list,
.cs-list-ordered {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-5);
}

.cs-list li,
.cs-list-ordered li {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    margin-bottom: var(--space-3);
    padding-left: var(--space-4);
    position: relative;
    max-width: 60ch;
}

.cs-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.cs-list-ordered {
    counter-reset: cs-counter;
}

.cs-list-ordered li::before {
    content: counter(cs-counter) ".";
    counter-increment: cs-counter;
}

/* Subsections */
.cs-subsection-title {
    font-family: var(--font-body);
    font-size: var(--fs-h4);
    margin-bottom: var(--space-3);
    margin-top: var(--space-5);
}

.cs-block {
    margin-bottom: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-3);
}

.cs-block-title {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    text-transform: uppercase;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

/* Artifacts */
.cs-artifacts-grid {
    grid-column: 1 / -1;
    /* Full width relative to container */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.cs-artifact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.cs-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
}

.cs-caption {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.center-content {
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 48em) {
    .cs-hero-content {
        max-width: 100%;
        margin-top: var(--space-6);
    }

    .cs-section-label {
        grid-column: 1 / -1;
        margin-bottom: var(--space-2);
    }

    .cs-section-body {
        grid-column: 1 / -1;
    }

    .cs-artifacts-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   12. Technical Essay / Systems Layout
   ========================================= */

.essay-container {
    max-width: 68ch;
    margin: 0 auto;
    padding: var(--space-8) var(--grid-margin-desktop);
    position: relative;
}

@media (max-width: 48em) {
    .essay-container {
        padding: var(--space-6) var(--grid-margin-mobile);
    }
}

/* Hero */
.essay-hero {
    margin-bottom: 96px;
    position: relative;
    border-left: 1px solid var(--border-subtle);
    padding-left: var(--space-4);
    display: flex;
    flex-direction: column;
    padding-top: var(--space-4);
    /* Added breathing room */
}

.essay-meta-label {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-3);
}

.essay-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, var(--fs-hero));
    line-height: 1.2;
    margin-bottom: var(--space-5);
    word-wrap: break-word;
    /* Ensure no overflow */
}

.essay-framing {
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    /* Max 24px, Min 18px */
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 60ch;
    margin-top: 0;
}

/* Typography Body */
.essay-prose {
    font-family: var(--font-body);
    font-size: 1.125rem;
    /* slightly larger than base */
    line-height: 1.7;
    color: var(--text-primary);
}

.essay-prose p {
    margin-bottom: 2rem;
}

.essay-prose h2 {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.essay-prose ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.essay-prose ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.essay-prose ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Pull Quote */
.essay-pull-quote {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    line-height: 1.3;
    color: var(--text-primary);
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin: 4rem 0;
    text-align: center;
}

/* Technical Diagram (CSS Construct) */
.essay-diagram {
    margin: 4rem -2rem;
    /* Break out slightly */
    padding: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    position: relative;
}

@media (max-width: 48em) {
    .essay-diagram {
        margin: 3rem 0;
        padding: 1.5rem;
    }
}

.diagram-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

/* Reference Panel */
.essay-ref-panel {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-primary);
    margin: 2rem 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.essay-ref-panel:hover {
    opacity: 0.7;
}

.ref-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.ref-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
}

/* Diagram Bar Animation */
.bar-reveal {
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.8s var(--ease-standard);
}

.bar-reveal.is-visible {
    transform: scaleY(1);
}

/* =========================================
   13. Media Infrastructure / Editorial Layout
   ========================================= */

.media-container {
    max-width: 60ch;
    /* Narrower than standard essay */
    margin: 0 auto;
    padding: var(--space-8) var(--grid-margin-desktop);
    position: relative;
}

@media (max-width: 48em) {
    .media-container {
        padding: var(--space-6) var(--grid-margin-mobile);
    }
}

/* Hero */
.media-hero {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-7);
    padding-top: var(--space-4);
}

.media-meta-label {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-3);
}

.media-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.media-hero-divider {
    height: 1px;
    background-color: var(--border-subtle);
    width: 100%;
    margin: var(--space-4) 0;
}

.media-framing {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.media-intro-block {
    background-color: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: 4px;
}

/* Content Sections */
.media-section-head {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    margin-top: var(--space-7);
    margin-bottom: var(--space-3);
    position: relative;
}

.margin-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-2);
}

.media-prose {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.media-prose p {
    margin-bottom: var(--space-3);
}

.media-subhead {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.media-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-4);
}

.media-list li {
    padding-left: var(--space-5);
    position: relative;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.media-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--border-subtle);
}

/* Diagrams */
.media-diagram {
    margin: var(--space-6) 0;
    padding: var(--space-4);
    border: 1px solid var(--border-subtle);
    background: var(--bg-primary);
}

.diagram-label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: var(--space-2);
}

.flow-chart-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-4) 0;
}

.flow-node {
    padding: 8px 12px;
    border: 1px solid var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.flow-node.highlight-friction {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    border-style: dashed;
}

.flow-node.dim {
    opacity: 0.5;
    border-style: dotted;
}

.flow-arrow {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.diagram-caption {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-3);
    text-align: center;
}

/* Pull Quote */
.media-quote {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin: var(--space-6) 0;
    padding-left: var(--space-4);
    border-left: 2px solid var(--accent-primary);
}

/* Reference Panel */
.media-ref-panel {
    border: 1px solid var(--border-subtle);
    padding: var(--space-4);
    margin: var(--space-6) 0;
}

.ref-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
}

.ref-title a {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.ref-title a:hover {
    border-bottom-color: var(--text-primary);
}

.ref-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

/* =========================================
   14. Design Systems / Documentation Layout
   ========================================= */

.ds-container {
    max-width: 60ch;
    margin: 0 auto;
    padding: var(--space-8) var(--grid-margin-desktop);
    position: relative;
}

@media (max-width: 48em) {
    .ds-container {
        padding: var(--space-6) var(--grid-margin-mobile);
    }
}

/* Hero */
.ds-hero {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-7);
    padding-top: var(--space-4);
}

.ds-meta-label {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-3);
}

.ds-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.ds-hero-divider {
    height: 1px;
    background-color: var(--border-subtle);
    width: 100%;
    margin: var(--space-4) 0;
}

.ds-framing {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: 4px;
}

/* Content */
.ds-section-head {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    margin-top: var(--space-7);
    margin-bottom: var(--space-3);
}

.ds-prose {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ds-prose p {
    margin-bottom: var(--space-3);
}

.ds-subhead {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.ds-list {
    list-style: none;
    padding: 0;
}

.ds-list li {
    padding-left: var(--space-3);
    position: relative;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ds-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Failure Mode Grid */
.ds-failure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin: var(--space-4) 0;
}

@media (max-width: 48em) {
    .ds-failure-grid {
        grid-template-columns: 1fr;
    }
}

.failure-card {
    background: var(--bg-secondary);
    padding: var(--space-4);
    border: 1px solid var(--border-subtle);
}

.failure-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: var(--space-2);
}

/* Token Visualization */
.ds-visual-artifact {
    margin: var(--space-6) 0;
    padding: var(--space-4);
    border: 1px solid var(--border-subtle);
    background: var(--bg-primary);
}

.artifact-label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: var(--space-2);
}

.token-grid-display {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.token-group-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.token-swatches {
    display: flex;
    gap: var(--space-2);
}

.token-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
}

.token-swatch.primary {
    background-color: var(--text-primary);
}

.token-swatch.secondary {
    background-color: var(--text-muted);
}

.token-swatch.accent {
    background-color: var(--accent-primary);
}

.token-swatch.surface {
    background-color: var(--bg-secondary);
}

.token-spacing-bars {
    display: flex;
    gap: var(--space-2);
    align-items: flex-end;
}

.spacing-bar {
    width: 16px;
    background-color: var(--accent-primary);
    opacity: 0.2;
}

.spacing-bar.s1 {
    height: 8px;
}

.spacing-bar.s2 {
    height: 16px;
}

.spacing-bar.s3 {
    height: 24px;
}

.spacing-bar.s4 {
    height: 32px;
}

.token-type-scale {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
}

.type-h1 {
    font-family: var(--font-display);
    font-size: 2rem;
}

.type-h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.type-body {
    font-family: var(--font-body);
    font-size: 1rem;
}

.artifact-caption {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-3);
    text-align: center;
}

/* =========================================
   15. Engagements / Editorial Layout
   ========================================= */

/* Hero */
.eng-hero {
    margin-bottom: var(--space-7);
    padding-top: var(--space-4);
}

.eng-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    max-width: 25ch;
}

.eng-title strong {
    color: var(--text-primary);
    font-weight: 400;
    border-bottom: 2px solid var(--accent-primary);
}

.eng-hero-divider {
    height: 1px;
    background-color: var(--border-subtle);
    width: 60px;
    margin: var(--space-5) 0;
}

.eng-framing {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Structural Block */
.eng-block {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
}

.eng-block:last-of-type {
    border-bottom: none;
}

.eng-block-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.eng-block-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--space-4);
}

.eng-block-body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.eng-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0;
}

.eng-list li {
    padding-left: var(--space-3);
    position: relative;
    margin-bottom: var(--space-2);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.eng-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Investment */
.eng-investment {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: var(--space-3) var(--space-4);
    border-radius: 4px;
    border-left: 2px solid var(--text-muted);
}

.eng-investment-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.eng-investment-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
}

/* Engagements Spacing Overrides */
.eng-section {
    margin-top: clamp(6rem, 15vh, 12rem);
    /* Large responsive gap between sections */
    position: relative;
}

.eng-section-head {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    margin-top: 0;
    /* Remove gap between label and title */
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

/* =========================================
   16. Intake Flow (Start a Project)
   ========================================= */

/* Nav */
.flow-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--grid-margin-mobile);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-primary);
    box-shadow: none;
    /* Override global nav shadow */
    border-radius: 0;
    /* Ensure background obscures content */
}

@media (min-width: 48em) {
    .flow-nav {
        padding: var(--space-3) var(--grid-margin-desktop);
    }
}

.flow-close {
    font-family: var(--font-body);
    /* Standard font for 'x' */
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s ease;
}

.flow-close:hover {
    color: var(--text-primary);
}

/* Container */
.flow-container {
    max-width: 60ch;
    /* Standard readable measure */
    margin: 0 auto;
    padding: 5rem var(--space-3) var(--space-4);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertically if short */
}

/* Progress */
.flow-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 101;
}

.flow-progress-bar {
    height: 100%;
    background: var(--accent-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Steps */
.flow-step {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.flow-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Text */
.flow-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.flow-heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.flow-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    letter-spacing: 0.05em;
}

.flow-prose {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.flow-note {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-5);
    font-style: italic;
}

/* Options (Radio Cards) */
.flow-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.flow-option {
    cursor: pointer;
    position: relative;
}

.flow-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.flow-option-card {
    display: block;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.flow-option-card:hover {
    border-color: var(--text-muted);
}

.flow-option input:checked~.flow-option-card {
    border-color: var(--accent-primary);
    background: rgba(201, 106, 58, 0.03);
    /* Tiny tint of accent */
    color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--accent-primary) inset;
}

.flow-option input:focus-visible~.flow-option-card {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Hints */
.flow-hint {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: calc(var(--space-3) * -1);
    /* Pull closer to options */
    margin-bottom: var(--space-5);
    min-height: 1.5em;
    /* Prevent layout jump */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Inputs */
.flow-input-group {
    margin-bottom: var(--space-4);
}

.flow-input-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: var(--space-1);
    color: var(--text-secondary);
}

.flow-input {
    width: 100%;
    padding: var(--space-2) 0;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-primary);
    border-radius: 0;
    /* Remove iOS styles */
}

.flow-input:focus {
    outline: none;
    border-bottom-color: var(--accent-primary);
}

.flow-input.error {
    border-bottom-color: #ef4444;
    /* Red for error */
}

/* Checkbox Gate */
.flow-gate {
    margin-bottom: var(--space-5);
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: 4px;
}

.flow-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    position: relative;
}

.flow-checkbox input {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    margin: 0;
    margin-top: 2px;
    font: inherit;
    color: currentColor;
    width: 1.25em;
    height: 1.25em;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    display: grid;
    place-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.flow-checkbox input::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--text-primary);
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.flow-checkbox input:checked {
    border-color: var(--text-primary);
}

.flow-checkbox input:checked::before {
    transform: scale(1);
}

.flow-checkbox:hover input {
    border-color: var(--text-muted);
}

.flow-checkbox-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Actions */
.flow-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.btn-flow-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    width: auto;
    height: auto;
    border: none;
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-flow-primary:hover {
    opacity: 0.9;
}

.btn-flow-back {
    background: transparent;
    width: auto;
    height: auto;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s ease;
}

.btn-flow-back:hover {
    color: var(--text-secondary);
    text-decoration-color: var(--text-secondary);
}

.btn-flow-outline {
    display: inline-block;
    border: 1px solid var(--border-subtle);
    padding: var(--space-2) var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    transition: border-color 0.2s ease;
}

.btn-flow-outline:hover {
    border-color: var(--text-primary);
}

/* --- APPROACH PAGE --- */

.approach-container {
    max-width: 42rem;
    /* Approx 672px - narrow column */
    margin: 0 auto;
    padding: var(--space-7) var(--grid-margin-mobile);
}

@media (min-width: 48em) {
    .approach-container {
        padding: var(--space-9) var(--grid-margin-desktop);
    }
}

/* Typography Overrides for "Calm" Aesthetic */
/* .approach-container h1, h2, p, li styles are handled by specific class selectors below or inherit correctly. */

.approach-hero {
    margin-bottom: var(--space-8);
}

.approach-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    /* ~36px */
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-5);
    max-width: 30ch;
}

.approach-intro p {
    font-size: 1.25rem;
    /* 20px - slightly larger */
    line-height: 1.6;
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.approach-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text-primary);
    border-left: 2px solid var(--accent-primary);
    padding-left: var(--space-4);
    margin: var(--space-5) 0;
}

/* Sections */
.approach-section {
    margin-bottom: var(--space-7);
}

.approach-head {
    font-family: var(--font-display);
    font-size: 1.5rem;
    /* ~24px */
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.approach-section p {
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.7;
    /* Comfortable */
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
}

/* Pull Quote */
.approach-pull-quote {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.3;
    text-align: center;
    margin: var(--space-6) 0;
    color: var(--text-primary);
    border: none;
    padding: 0;
}

/* =========================================
   15. Work Index (Horizontal Modules)
   ========================================= */

.work-index-container {
    max-width: var(--container-width-md);
    /* Reading width */
    margin: 0 auto;
    padding: var(--space-8) var(--grid-margin-desktop);
    position: relative;
}

@media (max-width: 48em) {
    .work-index-container {
        padding: var(--space-6) var(--grid-margin-mobile);
    }
}

/* -- Hero -- */
.work-hero {
    margin-bottom: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 50ch;
    /* Restrained width */
}

.work-hero-label {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.work-hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
}

.work-hero-subhead {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-top: var(--space-2);
}

/* -- Index Controls -- */
.work-controls {
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-3);
    margin-bottom: var(--space-8);
}

.work-controls-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* -- Work Module -- */
.work-module {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-9);
    /* Lots of whitespace */
    align-items: start;
    opacity: 0;
    /* JS Fade in */
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.work-module.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.work-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-2);
    /* Slight optical alignment with image */
}

.work-artifact {
    position: relative;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    /* No hover effects */
}

.work-artifact img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 48em) {
    .work-module {
        grid-template-columns: 1fr;
        /* Stack */
        gap: var(--space-5);
    }

    .work-artifact {
        order: -1;
        /* Artifact (Image) first on mobile */
    }
}

/* Typography inside Module */
.work-title {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
}

.work-descriptor {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    /* Pull up closer to title */
}

.work-summary {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.work-focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.work-focus-list li::before {
    content: "•";
    color: var(--text-muted);
    margin-right: 0.5rem;
}

/* Links */
.work-links {
    margin-top: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.work-link-primary {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.work-link-primary:hover {
    text-decoration: underline;
}

.work-link-secondary {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

.work-link-secondary:hover {
    color: var(--text-secondary);
}

/* -- Transition Out -- */
.work-transition {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-subtle);
    max-width: 45ch;
}

.work-transition p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.work-transition-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--accent-primary);
    /* Use brand accent */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.work-transition-link:hover {
    text-decoration: underline;
}