/* Poor Yorick — Design System
   Color palette sampled from hero illustration
   Fonts: Zilla Slab (wordmark) · DM Sans (body) · DM Mono (labels/nav)
   Google Fonts import:
   https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@700&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@300;400;500&display=swap

   Optional display fonts (loaded separately in <head>):
   https://fonts.googleapis.com/css2?family=Federo&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Kings&family=Lavishly+Yours&family=Style+Script&display=swap
*/

:root {

  /* SOURCE PALETTE — extracted from illustration */
  --color-bark:        #1e150e;   /* Hero bg, deep ink */
  --color-terracotta:  #c05535;   /* Primary accent, CTA buttons */
  --color-teal:        #6d8450;   /* Secondary accent */
  --color-ochre:       #c8913a;   /* Tertiary accent, tags, labels */
  --color-linen:       #f5eedc;   /* Light text on dark, light surface */

  /* PAGE BACKGROUNDS — not white */
  --bg-default:        #f0e8d5;   /* Warm Parchment — default page bg */
  --bg-alt:            #e8dfc8;   /* Aged Paper — alternate section bg (work) */
  --bg-dark:           #2a1f14;   /* Dark Soil — footer, dark sections */
  --bg-services:       #4a5c35;   /* Deep Olive — services section */
  --bg-cta:            #5c2e1a;   /* Burnt Sienna — CTA section */

  /* TEXT */
  --text-primary:      #1e150e;   /* Main body text on light backgrounds */
  --text-secondary:    #5a4535;   /* Secondary text on light backgrounds */
  --text-muted:        #8c7a68;   /* Labels, metadata on light backgrounds */
  --text-light:        #f5eedc;   /* Primary text on dark backgrounds */
  --text-light-muted:  rgba(245, 238, 220, 0.55); /* Secondary on dark */

  /* BORDERS & RULES */
  --rule-light:        rgba(30, 21, 14, 0.12);  /* Dividers on light bg */
  --rule-dark:         rgba(245, 238, 220, 0.15); /* Dividers on dark bg */

  /* BUTTONS */
  --btn-primary-bg:    #c05535;   /* Terracotta */
  --btn-primary-text:  #f5eedc;   /* Linen */
  --btn-ghost-text:    #f5eedc;   /* Ghost on dark bg */

  /* HERO OVERLAY */
  --hero-gradient-start: rgba(20, 14, 10, 0.92); /* Bottom of gradient band */
  --hero-gradient-end:   rgba(20, 14, 10, 0.00); /* Top of gradient band */
  --hero-wordmark:       rgba(245, 238, 220, 0.95);
  --hero-meta:           rgba(245, 238, 220, 0.55);
  --nav-card-bg:         rgba(245, 238, 220, 0.92);
  --nav-card-text:       #2a1f14;

  /* TYPOGRAPHY */
  --font-display:  'Zilla Slab', Georgia, serif;     /* Wordmark only */
  --font-body:     'DM Sans', system-ui, sans-serif; /* All body copy */
  --font-mono:     'Zilla Slab', Georgia, serif;             /* Nav, labels, metadata */

  /* SECTION MAP — for reference */
  /* [hero]         illustration bg + gradient overlay     */
  /* [credentials]  --bg-default (#f0e8d5)                 */
  /* [services]     --bg-services (#4a5c35)                */
  /* [work]         --bg-alt (#e8dfc8)                     */
  /* [cta]          --bg-cta (#5c2e1a)                     */
  /* [footer]       --bg-dark (#2a1f14)                    */

  /* LEGACY ALIASES — keeps existing rules from breaking */
  --primary:       var(--bg-default);
  --accent:        var(--color-teal);
  --accent-warm:   var(--color-terracotta);
  --accent-gold:   var(--color-ochre);
  --text:          var(--text-primary);
  --text-dim:      var(--text-secondary);
  --surface:       var(--bg-default);
  --surface-elevated: var(--color-linen);
  --hero-dark:     var(--bg-dark);
  --rust:          var(--color-terracotta);
  --teal:          var(--color-teal);
  --ochre:         var(--color-ochre);
  --cream:         var(--color-linen);
}

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

p {
    font-size: 1.3rem;
}

body {
    font-family: var(--font-body);
    /*background: url('../img/bkgd.png') top center no-repeat,
                url('../img/footer-bkgd.png') bottom center no-repeat;*/
    background-size: contain, contain;
    background-attachment: scroll, scroll;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    padding-top: 15px;
    color: var(--color-ochre);
    font-size: 200%;
}

.container {
    max-width: 1200px;
    margin: 150px auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* When hero is a sibling above the container, no top margin needed */
header.hero + .container {
    margin-top: 0;
}

/* ── Site Navigation ── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: url('../img/topheader-bkgd') center center / cover no-repeat;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.site-nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    font-family: "Style Script", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 2.6rem;
    color: var(--color-linen);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.nav-brand:visited {
    color: var(--color-linen);
}

.site-nav .nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    list-style: none;
    background: rgba(245, 238, 220, 0.92);
    padding: 0.5rem 1rem;
    border-radius: 2px;
    transform: rotate(-1deg);
    line-height:1rem;
}

.site-nav .nav-links a {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: #2a1f14;
    text-decoration: none;
    transition: opacity 0.15s;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-nav .nav-links a:hover {
    opacity: 0.6;
}

.site-nav .nav-links a:visited {
    color: #2a1f14;
}

a:visited {
    color: var(--accent);
}

.site-nav .nav-links a:active,
.site-nav .nav-links a.active {
    color: var(--color-terracotta);
}

/* ── Nav Dropdowns ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    cursor: default;
}

.nav-dropdown > a::after {
    content: ' ▾';
    font-size: 0.6em;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 140px;
    box-shadow: none;
    z-index: 1000;
    list-style: none;
    margin-top: 0;
    padding-top: 0.75rem;
}

/* Invisible bridge so hover doesn't break between trigger and menu */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
}


.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li {
    padding: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.4rem 1rem;
    font-size: 1.1rem !important;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-linen);
    font-size: 1.25rem;
}

.email-icon {
    font-size: 30px !important;
    color: var(--accent);
    transition: color 0.2s ease;
    position: relative;
    top: -3px;
}
/* ── Header ── */
header {
    padding: 4rem 0 8rem;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.header-text {
    flex: 1;
}

.page-home .site-nav { display: none; }

/* ── Hero (Homepage) ── */
header.hero {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    min-height: 100vh;
    background-image: url('../img/hero-banner.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    overflow: hidden;
}

/* Grain texture */
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* Gradient band from bottom */
.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(20,14,10,0.92) 0%, transparent 100%);
}

/* Wordmark: top right */
.hero-wordmark {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 0.88;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(7rem, 14vw, 12rem);
    color: #fff;
    letter-spacing: 0.02em;
    user-select: none;
}

/* Nav card: top left */
.hero-nav-card {
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    z-index: 3;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: rgba(245, 238, 220, 0.92);
    padding: 0.5rem 1rem;
    border-radius: 2px;
    transform: rotate(-1deg);
}

.hero-nav-card a {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: #2a1f14;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.15s;
}

.hero-nav-card a:hover {
    opacity: 0.6;
}

/* Hero copy: bottom */
.hero-copy {
    position: absolute;
    bottom: 3.5rem;
    left: 3rem;
    right: 3rem;
    z-index: 3;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(245, 238, 220, 0.95);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.hero-meta {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: rgba(245, 238, 220, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.5rem;
}

.hero-costly-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--color-ochre);
    text-underline-offset: 4px;
    cursor: pointer;
}

.hero-costly-link:hover {
    color: var(--color-ochre);
}

.hero-scroll-arrow {
    display: block;
    font-size: 4rem;
    line-height: 1;
    color: var(--color-ochre);
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    user-select: none;
}

.hero-scroll-arrow.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.hero-btn-primary {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f5eedc;
    background: #c05535;
    padding: 0.65rem 1.4rem;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.15s;
}

.hero-btn-primary:hover {
    background: #a84328;
}

.hero-btn-ghost {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(245, 238, 220, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    transition: color 0.15s;
}

.hero-btn-ghost:hover {
    color: #fff;
}

.hero-image-wrap { display: none; }
.hero-image-placeholder { display: none; }

/* ── Hero responsive ── */
@media (max-width: 640px) {
    .hero-wordmark {
        position: static;
        font-size: 3rem;
        align-items: flex-start;
        padding: 1.5rem 1.5rem 0;
    }

    .hero-nav-card {
        position: static;
        transform: none;
        border-radius: 0;
        padding: 0.5rem 1.5rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    header.hero {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .hero-copy {
        position: absolute;
        bottom: 2rem;
        left: 1.5rem;
        right: 1.5rem;
        max-width: none;
    }
}

/* ── Intro Panel ── */
.intro-panel {
    min-height: 100vh;
    background: var(--color-linen);
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.intro-panel-watermark {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.intro-panel-inner {
    max-width: 90%;
    padding: 4rem 2rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

.intro-panel-body {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-ochre);
    letter-spacing: -0.02em;
    margin-bottom: 28rem;
}

.intro-panel-sub {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--ochre);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.intro-panel-links {
    display: flex;
    gap: 1rem;
}


/* ── Experience Panel ── */
.experience-panel {
    min-height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
}

.experience-panel-inner {
    max-width: 1100px;
    width: 100%;
}

.experience-label {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-light-muted);
    margin-bottom: 3rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    border-top: 1px solid var(--rule-dark);
    padding-top: 3rem;
}

.experience-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.experience-value {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    color: var(--color-ochre);
    line-height: 1;
}

.experience-key {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.experience-desc {
    font-size: 1.1rem;
    color: var(--text-light-muted);
    line-height: 1.55;
}

.experience-clients {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-top: 1px solid var(--rule-dark);
    padding-top: 2rem;
}

.experience-clients-label {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light-muted);
}

.experience-clients-list {
    font-size: 1.1rem;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

/* ── Services Carousel ── */
.services-carousel-section {
    min-height: 100vh;
    background: var(--bg-default);
    display: flex;
    flex-direction: column;
}

.services-carousel-header {
    padding: 3rem 4rem 0;
    border-bottom: 1px solid var(--rule-light);
}

.services-carousel-eyebrow {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.services-tab-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.services-tab-nav::-webkit-scrollbar {
    display: none;
}

.stab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 2rem 0.75rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    text-align: left;
    margin-right: 2.5rem;
    letter-spacing: -0.02em;
}

.stab:last-child {
    margin-right: 0;
}

.stab.active,
.stab:hover {
    color: var(--color-ochre);
    border-bottom-color: var(--color-ochre);
}

.services-carousel-track {
    flex: 1;
    position: relative;
}

.services-panel {
    display: none;
    height: 100%;
    min-height: calc(100vh - 180px);
    padding: 4rem;
    gap: 4rem;
    align-items: center;
    grid-template-columns: 1fr 1fr;
}

.services-panel.active {
    display: grid;
}

.services-panel-image {
    background: transparent;
    border-radius: 4px;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-panel-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.services-panel-body h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--color-ochre);
    padding-top: 0;
    margin-bottom: 0;
}

.services-panel-for {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0;
}

.services-panel-body > p:not(.services-panel-for) {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.services-panel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.services-panel-list li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    padding-left: 1.2em;
    position: relative;
}

.services-panel-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-ochre);
}

.services-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    border-top: 1px solid var(--rule-light);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 900px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-carousel-header {
        padding: 2rem 2rem 0;
    }

    .stab {
        font-size: 1.1rem;
        margin-right: 1.5rem;
    }

    .services-panel {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .services-panel-image {
        min-height: 220px;
        order: -1;
    }

    .services-carousel-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 2rem;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experience-value {
        font-size: 3rem;
    }
}

/* ── Home Services Section ── */
.home-services {
    margin: 2rem 0 5rem;
}

.home-services .section-header {
    margin-bottom: 2.5rem;
}

.home-services .section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 680px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card-home {
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-icon-slot {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    /* placeholder: replace with <img> or inline <svg> */
    background: rgba(0, 0, 0, 0.05);
    border: 1.5px dashed rgba(0, 0, 0, 0.18);
    border-radius: 4px;
}

.service-card-home h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--color-ochre);
    padding-top: 0;
}

.service-card-home .service-for {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.service-card-home > p {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-deliverables {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding-top: 1rem;
}

.service-deliverables li {
    font-size: 1.1rem;
    color: var(--text-dim);
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.service-deliverables li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-engagement-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
}

.service-engagement-note span {
    font-size: 1.1rem;
    color: var(--text-dim);
}

.eyebrow {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-48px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tagline {
    font-size: 16rem;
    color: #000;
    margin-bottom: 2rem;
    max-width: 600px;
    animation: slideright 0.8s ease-out 0.2s both;
}

.intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.quick-links {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--rust);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--cream);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 2px solid rgba(242, 237, 228, 0.6);
}

.btn-secondary:hover {
    background: rgba(242, 237, 228, 0.15);
    color: var(--cream);
    border-color: var(--cream);
}

/* Buttons outside the hero (on light backgrounds) */
.service-page-cta .btn-primary,
.service-engagement-note .btn-primary,
.home-services .btn-primary {
    background: var(--rust);
    color: var(--cream);
}

.service-page-cta .btn-primary:hover,
.service-engagement-note .btn-primary:hover,
.home-services .btn-primary:hover {
    background: var(--teal);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
}

/* ── Credibility Strip ── */
.credibility-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 4rem;
}

.credibility-item {
    flex: 1;
    min-width: 200px;
}

.credibility-item .label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.credibility-item .value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

/* ── Featured Work Grid (Homepage) ── */
.featured-work {
    margin: 2rem 0 4rem;
}

/* ── Portfolio tabs ── */
.portfolio-tabs-section {
    padding: 2.5rem 0 0;
    border-bottom: 1px solid var(--rule-light);
}

.portfolio-tab-nav {
    padding-bottom: 0;
    margin-bottom: 0;
}

.portfolio-panels-section {
    padding: 3rem 0 4rem;
}

.portfolio-panel {
    display: none;
}

.portfolio-panel.active {
    display: block;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.project-card {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-card-body {
    padding: 1.5rem;
}

.project-card-body .meta-tag {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

.project-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    padding-top: 0.5rem;
}

.project-card-body p {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-card-body .card-cta {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

/* ── Section Teasers (Homepage) ── */
.section-teaser {
    margin: 4rem 0;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.section-teaser h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-teaser--with-image {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.teaser-image {
    flex-shrink: 0;
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    margin-top:60px;
}

.teaser-content {
    flex: 1;
}

.section-teaser p {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 1.5rem;
}

/* ── Remote Work Section ── */
.remote-work {
    margin: 6rem 0;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.remote-work h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.remote-work > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 800px;
}

.remote-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.remote-highlight {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    border-left: 3px solid var(--text);
}

.remote-highlight h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* ── Case Studies (Portfolio Page) ── */
.case-studies {
    margin: 1rem 0;
}

.case-study-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-study-image:hover {
    transform: scale(1.02);
}

.case-study-full {
    margin-bottom: 4rem;
    scroll-margin-top: 80px;
}

.case-study-full .case-study-image {
    max-width: 100%;
}

/* ── Carousel (kept for portfolio page if needed) ── */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--text);
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--text);
    width: 30px;
    border-radius: 5px;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent);
}

/* ── Section Header ── */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text);
}

.count {
    font-size: 1.1rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* ── Case Study Cards ── */
.case-study-grid {
    display: grid;
    gap: 3rem;
}

.case-study {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.case-study-header {
    padding: 1.5rem 2rem;
    background: var(--surface-elevated);
    position: relative;
    overflow: hidden;
}

.case-study-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text);
}

.case-study-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.meta-tag {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.case-study h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.2;
}

.case-study-intro {
    color: var(--text-dim);
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.case-study-body {
    padding: 1.5rem 2rem;
}

.outcomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.outcome {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid var(--text);
    border-radius: 4px;
}

.outcome-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.outcome-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.outcome-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.3;
}

.challenge-section {
    margin-top: 1.5rem;
}

.challenge-section h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.challenge-section p, .challenge-section ul {
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.challenge-section ul {
    list-style: none;
    padding-left: 0;
}

.challenge-section li {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.challenge-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text);
    font-size: 1.1rem;
}

.case-study-artifact {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.case-study-artifact img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* ── Services / Consulting ── */
#services ul {
  padding-left: 30px;
  padding-top:5px;
  list-style-type: square;
}

#services li, .services-intro p {
    color: #6876bb !important;
}

.services-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 2rem;
}

.service-card {
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 3rem;
    color: var(--color-ochre   );
    margin-bottom: 0.5rem;
}

.service-card .service-for {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.2rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.service-card li {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.service-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text);
    font-size: 1.1rem;
}

.service-card-detail-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

/* Linked service card — wraps entire card in <a> */
a.service-card--linked {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

a.service-card--linked:hover {
    box-shadow: 0 4px 24px rgba(30, 21, 14, 0.12);
    transform: translateY(-2px);
}

a.service-card--linked:visited {
    color: inherit;
}

.service-card-illustration {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    float: right;
    margin: 0 0 1rem 1.5rem;
    flex-shrink: 0;
}


.service-card-detail-link:hover {
    border-bottom-color: var(--accent);
}

/* ── Writing Page ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.article-card {
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.article-card .article-topic {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    padding-top: 0;
}

.article-card p {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.article-card .article-status {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-top: 1rem;
    font-style: italic;
}

/* ── Projects Page ── */
.project-detail {
    margin-bottom: 4rem;
}

.project-detail h3 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.project-detail p {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 1rem;
}

.project-detail ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.project-detail li {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.project-detail li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text);
    font-size: 1.1rem;
}

.future-projects {
    margin-top: 4rem;
    padding: 2rem;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.future-projects h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.future-projects p {
    font-size: 1.1rem;
    color: var(--text-dim);
}

/* ── Page Header (inner pages) ── */
.page-header {
    padding: 2rem 0 4rem;
}

.page-header--with-image {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.page-header-text {
    flex: 1;
}

.page-header-image {
    flex-shrink: 0;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin-top: 2rem;
    opacity: 0;
    animation: slowFadeIn 6s ease-out 2s both !important;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-warm);
}

.page-header p {
    font-size: 1.3rem;
    color: #a37e55;
    line-height: 1.7;
    max-width: 700px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.page-header-note {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-dim);
    opacity: 0.75;
    margin-top: 1rem;
    max-width: 600px;
}

/* ── Service Card as Link ── */
a.service-card-home {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.service-card-home:visited {
    color: inherit;
}

a.service-card-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.service-card-cta {
    display: block;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* ── Service Page Layout ── */
.service-page-header {
    padding: 3rem 0 3rem;
    max-width: 760px;
}

.service-back {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.service-back:hover { color: var(--accent-warm); }
.service-back::before { content: '← '; }

.service-page-header .service-icon-slot {
    margin-bottom: 1.5rem;
}

.service-page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-page-tagline {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.65;
    max-width: 680px;
    margin-bottom: 0.75rem;
}

.service-page-for {
    font-size: 1.1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.service-page-body {
    max-width: 760px;
    margin-bottom: 4rem;
}

.service-page-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.service-page-section:last-child {
    border-bottom: none;
}

.service-page-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
}

.service-page-section p {
    font-size: 1.25rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 680px;
}

.service-page-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-page-list li {
    padding-left: 1.25rem;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 0.6rem;
}

.service-page-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.1rem;
}

.service-page-deliverables {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.service-page-deliverables li {
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.deliverable-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.deliverable-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.service-page-cta {
    border-bottom: none;
}

.service-page-cta .btn {
    margin-top: 1.5rem;
}

/* ── Other Services Strip ── */
.service-page-others {
    margin: 0 0 4rem;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.01);
}

.service-page-others h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 1rem;
    padding-top: 0;
    font-family: var(--font-mono);
    font-weight: 400;
}

.service-others-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-other-link {
    font-size: 1.1rem;
    color: var(--accent);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(81, 92, 148, 0.3);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.service-other-link:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ── Person Card (About Page) ── */
.person-card {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 2.5rem;
    margin: 3rem 0 5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.person-photo-slot {
    flex-shrink: 0;
    width: 333px;
}

.person-photo-placeholder {
    width: auto;
    height: auto;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px dashed rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.person-photo-slot img {
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.person-bio {
    flex: 1;
    min-width: 0;
}

.person-name {
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    padding-top: 0;
}

.person-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.person-bio p {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 0.9rem;
    max-width: 600px;
}

.person-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.person-links a {
    font-size: 1.1rem;
    color: var(--accent);
    text-decoration: none;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(81, 92, 148, 0.35);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.person-links a:hover {
    background: var(--accent);
    color: var(--primary);
}

@media (max-width: 600px) {
    .person-card {
        flex-direction: column;
        gap: 1.75rem;
    }

    .person-photo-slot,
    .person-photo-placeholder,
    .person-photo-slot img {
        width: 120px;
        height: 120px;
    }
}

/* ── Blog Page Header ── */
.page-header--with-substack {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.page-header--with-substack .page-header-text {
    flex: 1;
    min-width: 280px;
}

.substack-subscribe {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    padding-top: 0.5rem;
}

.substack-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin: 0;
}

/* ── Blog Post List ── */
.blog-post-list {
    margin: 3rem 0 4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-post-stub {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

a.blog-post-stub:hover {
    background: rgba(0, 0, 0, 0.02);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

a.blog-post-stub:hover .blog-post-status {
    color: var(--accent);
}

a.blog-post-stub:visited {
    color: inherit;
}

.blog-post-stub:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-post-topic {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.blog-post-stub h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    padding-top: 0;
}

.blog-post-stub p {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.65;
    max-width: 680px;
    margin-bottom: 0.75rem;
}

.blog-post-status {
    font-size: 1.1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.3);
}

/* ── Footer ── */
footer {
    width: 100%;
    height: 60px;
    background: var(--color-ochre);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.footer-content {
    display: flex;
    align-items: center;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--bg-dark);
    margin: 0;
    letter-spacing: 0.03em;
}

.footer-copy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    font-size: 1.1rem;
    text-decoration: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-link {
    color: var(--text);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link:hover::after {
    width: 100%;
}

/* ── Logo ── */
.logo {
    position: absolute;
    top: 48px;
    right: 100px;
    max-width: 200px;
    z-index: 500;
    opacity: 0;
    transform: rotate(-6deg) translateY(150px);
    animation: logoFadeInUp 3s ease-out 0.8s forwards;
}

.logo.logo-static {
    opacity: 1;
    transform: rotate(-6deg);
    animation: none;
}

.service-image {
  float: right;
  margin-right: -30px; /* space between text and image */
  margin-top: -30px; /* optional for vertical spacing */
  margin-bottom: 60px; /* optional for vertical spacing */
  max-width: 350px; /* adjust as needed */
  height: auto;
}

@keyframes logoFadeInUp {
    from {
        opacity: 0;
        transform: rotate(-6deg) translateY(80px);
    }
    to {
        opacity: 1;
        transform: rotate(-6deg) translateY(0);
    }
}

/* ── Scroll Indicator ── */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--text);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.is-visible {
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: var(--delay, 0s);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .hero-image-wrap {
        width: 320px;
    }
}

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

    header.hero {
        flex-direction: column;
        gap: 2.5rem;
        padding: 3rem 0 4rem;
    }

    .hero-image-wrap {
        width: 100%;
    }

    .header-content {
        flex-direction: column;
        gap: 2rem;
    }

    .quick-links {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-engagement-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Mobile nav */
    .site-nav .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(245, 238, 220, 0.98);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0.75rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 0;
        transform: none;
    }

    .site-nav .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0 1rem;
        margin-top: 0;
        min-width: 0;
    }

    .nav-dropdown .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 0.3rem 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .credibility-strip {
        gap: 1rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* ── Service Icon SVG Animations ── */
.service-icon {
    width: 800px;
    height: 800px;
    max-width: 100%;
    display: block;
}

.service-icon-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
}

.service-icon * {
    vector-effect: non-scaling-stroke;
    transition: all 240ms ease-out;
    transform-box: fill-box;
    transform-origin: center;
}

/* Product Clarity */
.service-icon:hover .verdict       { transform: scale(1.06); }
.service-icon:hover .review-panel  { transform: translateX(12px); }

/* Analytics UX */
.service-icon:hover .ux-path       { stroke-dashoffset: 0; }
.service-icon:hover .node          { transform: scale(1.15); }
.service-icon:hover .confusion     { transform: scale(1.1); }

.service-icon .motion,
.service-icon .lens,
.service-icon .node,
.service-icon .decision,
.service-icon .ai-core,
.service-icon .ui-panel,
.service-icon .connection,
.service-icon .problem-bar,
.service-icon .problem-line {
    transform-box: fill-box;
    transform-origin: center;
}

/* Keyframes */
@keyframes svc-lens-drift {
    0%, 100% { transform: translate(0, 0); }
    40%       { transform: translate(4px, 4px); }
    60%       { transform: translate(4px, 4px); }
}

@keyframes svc-bar-squeeze {
    0%, 100% { transform: scaleY(1); }
    40%       { transform: scaleY(0.65); }
    60%       { transform: scaleY(0.65); }
}

@keyframes svc-line-drop {
    0%, 100% { transform: translateY(0); opacity: 1; }
    40%       { transform: translateY(3px); opacity: .7; }
    60%       { transform: translateY(3px); opacity: .7; }
}

@keyframes svc-dash-draw {
    0%   { stroke-dashoffset: 340; }
    55%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 0; }
}

@keyframes svc-node-pulse {
    0%, 100% { transform: scale(1); }
    45%       { transform: scale(1.12); }
    65%       { transform: scale(1.12); }
}

@keyframes svc-decision-spin {
    0%, 100% { transform: rotate(0deg); }
    40%       { transform: rotate(45deg); }
    60%       { transform: rotate(45deg); }
}

@keyframes svc-connection-fade {
    0%, 100% { opacity: .55; }
    40%       { opacity: 1; }
    60%       { opacity: 1; }
}

@keyframes svc-core-breathe {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.06); }
}

@keyframes svc-panel-slide {
    0%, 100% { transform: translateX(0); }
    40%       { transform: translateX(4px); }
    60%       { transform: translateX(4px); }
}

/* Apply animations — shared duration keeps everything in sync */
.service-icon .lens         { animation: svc-lens-drift    3.6s ease-in-out infinite; }
.service-icon .problem-bar  { animation: svc-bar-squeeze   3.6s ease-in-out infinite; }
.service-icon .problem-line { animation: svc-line-drop     3.6s ease-in-out infinite; }
.service-icon .workflow-path {
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    animation: svc-dash-draw 3.6s ease-in-out infinite;
}
.service-icon .node         { animation: svc-node-pulse    3.6s ease-in-out infinite; }
.service-icon .decision     { animation: svc-decision-spin 3.6s ease-in-out infinite; }
.service-icon .connection   { animation: svc-connection-fade 3.6s ease-in-out infinite; }
.service-icon .ai-core      { animation: svc-core-breathe  2.8s ease-in-out infinite; }
.service-icon .ui-panel     { animation: svc-panel-slide   3.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .service-icon * { animation: none !important; }
}

/* ── Optional Display Fonts — utility classes, not assigned to any element ── */
.lavishly-yours-regular {
    font-family: "Lavishly Yours", cursive;
    font-weight: 400;
    font-style: normal;
}

.style-script-regular {
    font-family: "Style Script", cursive;
    font-weight: 400;
    font-style: normal;
}

.kings-regular {
    font-family: "Kings", cursive;
    font-weight: 400;
    font-style: normal;
}

.federo-regular {
    font-family: "Federo", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.fraunces {
    font-family: "Fraunces", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "SOFT" 0, "WONK" 0;
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════════════════
   SERVICE PAGE TEMPLATE
   Usage: add class="service-page-v2" to <body> or a wrapper div
   ══════════════════════════════════════════════════════════════════ */

/* Body-level setup for v2 service pages */
body.service-page-v2 {
    padding-top: 56px; /* height of fixed .site-nav */
}

/* ── Service hero nav dropdown ── */
.service-hero {
    position: relative;
}

.service-hero__nav {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    z-index: 10;
}

.service-hero__nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-linen);
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 2px;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.service-hero__nav-toggle:hover {
    background: rgba(0,0,0,0.3);
}

.service-hero__nav-toggle::after {
    content: '▾';
    font-size: 0.7em;
    opacity: 0.7;
}

.service-hero__nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-hero__nav.open .service-hero__nav-menu {
    display: block;
}

.service-hero__nav-menu li a {
    display: block;
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-linen);
    text-decoration: none;
    transition: background 0.1s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.service-hero__nav-menu li:last-child a {
    border-bottom: none;
}

.service-hero__nav-menu li a:hover {
    background: rgba(255,255,255,0.12);
}

.service-hero__nav-menu li a.current {
    font-weight: 600;
    opacity: 0.6;
    pointer-events: none;
}

body.service-page-v2 .container {
    margin-top: 0;
}

/* ── Service Hero — split layout ── */
.service-hero {
    background: #fff;
    padding: 0;
    border-bottom: 1px solid var(--rule-light);
    overflow: visible;
}

.service-hero__inner {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    min-height: 600px;
}

.service-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
    padding: 5rem 0 4rem 8rem;
}

.service-hero__back {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.service-hero__back::before {
    content: '←';
    font-style: normal;
}

.service-hero__back:hover {
    color: var(--color-terracotta);
}

.service-hero__eyebrow {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin: 0;
}

.service-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    color: var(--color-linen);
    line-height: 1.1;
    letter-spacing: -0.03em;
    padding-top: 0;
    margin: 0;
}

.service-hero__tagline {
    font-family: var(--font-body);
    font-size: 1.45rem;
    font-weight: 300;
    color: var(--color-linen);
    line-height: 1.65;
    margin: 0;
}

.service-hero__for {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 800;
    color: #000;
    font-style: italic;
    margin: 0;
}

.service-hero__back {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-linen);
    text-decoration: none;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.service-hero__back:hover {
    opacity: 1;
}

/* ── Screen gallery (project pages) ── */
.screen-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.screen-gallery::-webkit-scrollbar {
    display: none;
}

.screen-gallery figure {
    flex: 0 0 auto;
    scroll-snap-align: start;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.screen-gallery img {
    height: 480px;
    width: auto;
    border-radius: 16px;
    border: 1px solid var(--rule-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: block;
}

.screen-gallery figcaption {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 600px) {
    .screen-gallery img {
        height: 340px;
    }
}

.service-hero__media {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    align-self: stretch;
    overflow: hidden;
    margin-right: -20px;
}

.service-hero__media img {
    width: auto;
    height: 603px;
    max-width: none;
    display: block;
}

@media (max-width: 860px) {
    .service-hero__inner {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: unset;
    }
    .service-hero__copy {
        padding: 3rem 2rem 2rem;
    }
    .service-hero__media {
        order: -1;
        margin-right: 0;
        justify-content: center;
    }
    .service-hero__media img {
        height: 280px;
        width: 100%;
        object-fit: cover;
    }
    .service-hero__title {
        font-size: 2.2rem;
    }
}

/* ── Content width wrappers ── */
.content-narrow {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-medium {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Service content sections ── */
.service-section {
    padding: 4rem 0;
}

.service-section__label {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 1rem;
    display: block;
}

.service-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: var(--color-ochre);
    line-height: 1.15;
    letter-spacing: -0.025em;
    padding-top: 0;
    margin-bottom: 1.5rem;
}

.service-section p {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

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

/* ── Two column list ── */
.two-column-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
}

.two-column-list li {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
}

.two-column-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-terracotta);
    font-style: normal;
}

@media (max-width: 640px) {
    .two-column-list {
        grid-template-columns: 1fr;
    }
}

/* ── Deliverable grid ── */
.deliverable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.deliverable-card {
    background: var(--color-linen);
    border: 1px solid var(--rule-light);
    border-radius: 2px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.deliverable-card__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-bark);
    letter-spacing: -0.01em;
}

.deliverable-card__desc {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Good fit / Not a fit grid ── */
.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.fit-grid__col h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.fit-grid__col--yes h3 {
    color: var(--color-teal);
}

.fit-grid__col--no h3 {
    color: var(--text-muted);
}

.fit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.fit-list li {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.5;
    padding-left: 1.2rem;
    position: relative;
}

.fit-grid__col--yes .fit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-teal);
    font-size: 1.1rem;
}

.fit-grid__col--no .fit-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .fit-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Service CTA section ── */
.service-cta {
    background: var(--bg-cta);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.service-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--color-linen);
    letter-spacing: -0.02em;
    padding-top: 0;
    margin-bottom: 1rem;
}

.service-cta p {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(245, 238, 220, 0.7);
    max-width: 560px;
    margin: 0 auto 0.5rem;
    line-height: 1.7;
}

.service-cta__notes {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto 2rem;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-cta__notes li {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(245, 238, 220, 0.55);
}

/* ── Section dividers ── */
.divider-line {
    border: none;
    border-top: 1px solid var(--rule-light);
    margin: 0;
}

.divider-signal {
    position: relative;
    height: 1px;
    background: var(--rule-light);
    margin: 0;
    overflow: visible;
}

.divider-signal::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--color-terracotta);
    border-radius: 50%;
}

.divider-blocks {
    display: flex;
    gap: 3px;
    padding: 1.5rem 0;
    justify-content: flex-start;
}

.divider-blocks span {
    display: block;
    width: 8px;
    height: 3px;
    background: var(--color-terracotta);
    opacity: 0.4;
    border-radius: 1px;
}

.divider-blocks span:nth-child(2) {
    opacity: 0.7;
    width: 20px;
}

.divider-blocks span:nth-child(3) {
    opacity: 0.4;
}

/* ── Representative engagement block ── */
.engagement {
    background: var(--bg-alt);
    border-left: 3px solid var(--color-teal);
    padding: 2rem 2rem 2rem 2.25rem;
    border-radius: 0 2px 2px 0;
}

.engagement__situation {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-teal);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.engagement__response {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--color-bark);
    line-height: 1.75;
    margin-bottom: 0;
}

.engagement__response + .engagement__response {
    margin-top: 1rem;
}

/* ── Project grid ── */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--color-linen);
    border: 1px solid var(--rule-light);
    border-radius: 2px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
    box-shadow: 0 4px 24px rgba(30, 21, 14, 0.12);
    transform: translateY(-2px);
}

.project-card:visited {
    color: inherit;
}

.project-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card__image--placeholder {
    background: var(--bg-alt);
}

.project-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-card__body h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-bark);
    letter-spacing: -0.02em;
    padding-top: 0;
    margin: 0;
}

.project-card__body p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.project-card__cta {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--color-terracotta);
    margin-top: 0.5rem;
}

/* ── Service page others (cross-links) ── */
.service-page-v2 .service-page-others {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--rule-light);
    border: none;
    border-radius: 0;
    background: transparent;
    margin: 0;
}
