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

:root {
    --ink: #1a1714;
    --ink-soft: #4a4540;
    --ink-dim: #7a756e;
    --sand: #f7f5f2;
    --cream: #f1e8c8;
    --stone: #e0dcd7;
    --paper: #ffffff;
    --red: #e20b07;
    --red-hover: #ff1a1a;
    --red-glow: rgba(226, 11, 7, 0.07);
    --shadow: 0 14px 38px rgba(22, 20, 17, 0.08);
    --radius: 10px;
    --max: 1100px;
    --sans: "IBM Plex Sans", sans-serif;
    --mono: "Space Mono", monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: opacity 0.16s ease-out;
}

html.fonts-pending body {
    opacity: 0;
}

a {
    color: inherit;
}
/*
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}*/

/* ============================================================
   Nav
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--max);
    padding: 20px 40px;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--stone);
}

.nav-logo {
    color: var(--red);
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 22px;
    list-style: none;
}

.nav-links a {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--red);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 10px 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--red-hover);
    box-shadow: 0 4px 16px rgba(226, 11, 7, 0.2);
}

.nav-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.nav-toggle span {
    background: var(--ink-soft);
    display: block;
    height: 2px;
    transition: all 0.3s ease;
    width: 22px;
}

.nav-mobile {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stone);
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 28px 40px 32px;
}

.nav-mobile a {
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-mobile a:hover {
    color: var(--red);
}

.nav-mobile .mobile-cta {
    background: var(--ink);
    border-radius: 6px;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    margin-top: 12px;
    padding: 14px 24px;
}

.nav-mobile.open {
    display: flex;
}

/* ============================================================
   Shared layout
   ============================================================ */
.section {
    margin: 0 auto;
    max-width: var(--max);
    padding: 80px 40px;
}

.section--sand {
    background: var(--sand);
    max-width: none;
}

.section--sand > * {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.section--dark {
    background: var(--ink);
    color: #fff;
    max-width: none;
}

.section--dark > * {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.section--dark h2 {
    color: #fff;
}

.section--dark p {
    color: rgba(255, 255, 255, 0.8);
}

.eyebrow--on-dark {
    background: #fff;
    color: var(--ink);
}

.section-head {
    margin-bottom: 32px;
}

.section-head h2 {
    max-width: none;
}

.section-head p {
    margin-top: 0;
}

.section-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ============================================================
   Eyebrow — black text, yellow bottom border
   ============================================================ */
.eyebrow {
    background: var(--ink);
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding: 5px 10px 4px;
    text-transform: uppercase;
}

/* ============================================================
   Typography
   ============================================================ */
h1,
h2,
h3 {
    font-family: var(--sans);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 700;
    max-width: none;
}

h1 em {
    font-style: normal;
    font-weight: 700;
    color: var(--red);
}

.section h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
}

.section p {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.65;
    margin-top: 10px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    border-radius: 4px;
    display: inline-flex;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-hover);
    box-shadow: 0 6px 20px rgba(226, 11, 7, 0.25);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--stone);
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--sand);
    border-color: var(--ink-soft);
}

.text-link {
    color: var(--red);
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-top: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ============================================================
   HERO — full-width text-only (v2 style)
   ============================================================ */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    max-width: var(--max);
    min-height: 65vh;
    padding: 72px 40px 48px;
}

.hero-tagline {
    color: var(--red);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 60px);
    line-height: 1.08;
    max-width: none;
}

.hero h1 em {
    color: var(--red);
    font-family: "Bitter", Georgia, serif;
    font-style: italic;
    font-weight: 600;
    text-decoration: none;
}

.hero-sub {
    color: var(--ink-soft);
    font-size: 22px;
    line-height: 1.6;
    margin-top: 28px;
}

.hero-sub strong {
    color: var(--red);
    font-weight: 600;
}

.hero-actions {
    margin-top: 48px;
}

.btn-pill {
    border-radius: 999px;
    padding: 14px 32px;
}

/* ============================================================
   Hero-lead (used on consulting and project pages)
   ============================================================ */
.hero-lead {
    color: var(--ink-soft);
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    margin-top: 14px;
    /* max-width: 57ch; */
}

/* ============================================================
   BEFORE & AFTER GRID
   ============================================================ */
.h2-muted {
    color: var(--ink-dim);
    font-family: var(--sans);
    font-size: 0.55em;
    font-weight: 400;
    letter-spacing: 0;
}

.ba-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

.ba-card {
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    color: var(--ink);
    display: block;
    overflow: hidden;
    text-decoration: none;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.ba-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.13);
}

/* Mobile tap-to-reveal state (class added via JS on touch devices) */
.ba-card.revealed .ba-before {
    opacity: 0;
}

.ba-card.revealed .ba-after {
    opacity: 1;
}

.ba-card.revealed .ba-badge--before {
    opacity: 0;
}

.ba-card.revealed .ba-badge--after {
    opacity: 1;
}

.ba-tap-hint {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
    bottom: 0;
    color: #fff;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    left: 0;
    letter-spacing: 0.06em;
    padding: 32px 12px 10px;
    pointer-events: none;
    position: absolute;
    right: 0;
    text-align: center;
    z-index: 4;
}

.ba-card-visual {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.ba-img {
    display: block;
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    transition: opacity 0.45s ease;
    width: 100%;
}

.ba-after {
    opacity: 0;
}

.ba-card:hover .ba-before {
    opacity: 0;
}

.ba-card:hover .ba-after {
    opacity: 1;
}

.ba-badge {
    background: rgba(234, 78, 0, 0.9);
    border-radius: 6px;
    bottom: 12px;
    color: #fff;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 700;
    left: 12px;
    letter-spacing: 0.05em;
    padding: 7px 16px;
    position: absolute;
    text-transform: uppercase;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.ba-badge--after {
    background: rgba(0, 183, 61, 0.92);
    opacity: 0;
    right: auto;
}

.ba-card:hover .ba-badge--before {
    opacity: 0;
}

.ba-card:hover .ba-badge--after {
    opacity: 1;
}

.ba-card-body {
    padding: 16px 18px 20px;
}

.ba-card-body .eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.ba-card-body h3 {
    font-size: 1.08rem;
    line-height: 1.2;
    margin: 0;
}

.ba-card-body p {
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.45;
    margin-top: 6px;
}

.ba-explore {
    color: var(--red);
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-top: 10px;
    text-decoration: none;
}

/* ============================================================
   SHOPHILOSONOMICS — Principles Grid
   ============================================================ */
.shophilosonomics {
    padding-top: 80px;
    padding-bottom: 80px;
}

.shophilo-head {
    align-items: center;
    display: flex;
    gap: 48px;
}

.shophilo-head-text {
    flex: 1;
}

.shophilo-head-book {
    flex-shrink: 0;
    width: 160px;
}

.shophilo-head-book img {
    border-radius: 6px;
    box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.18);
    display: block;
    height: auto;
    width: 100%;
}

.shophilo-intro {
    color: var(--ink-soft);
    font-size: 19px;
    line-height: 1.65;
    margin-top: 10px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 48px;
}

.principle-card {
    background: var(--sand);
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: default;
}

.principle-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--red);
    transition: height 0.4s ease;
}

.principle-card:hover::before {
    height: 100%;
}

.principle-card:hover {
    background: var(--stone);
}

.principle-icon {
    color: var(--red);
    display: block;
    font-size: 24px;
    margin-bottom: 20px;
}

.principle-title {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.principle-subtitle {
    color: var(--red);
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
}

.principle-desc {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.7;
}

/* ============================================================
   CONSULTING CTA
   ============================================================ */
.consulting-cta {
    padding-top: 96px;
    padding-bottom: 96px;
    text-align: center;
}

.consulting-cta-inner {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.consulting-cta-inner h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-top: 8px;
    letter-spacing: -0.3px;
}

.consulting-cta-inner p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 14px;
}

.section--dark .consulting-cta-inner p {
    color: rgba(255, 255, 255, 0.92);
}

.consulting-cta-inner .btn {
    margin-top: 28px;
    font-size: 14px;
    padding: 16px 36px;
}

/* ============================================================
   YOUTUBE SHOWCASE (dark section)
   ============================================================ */
.yt-showcase {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-grid {
    align-items: stretch;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 32px;
}

.yt-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    transition:
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.yt-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.yt-thumb-wrap {
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    position: relative;
}

.yt-thumb {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.yt-play {
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    font-size: 2.2rem;
    inset: 0;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.yt-card:hover .yt-play {
    color: #ff0000;
}

.yt-card .yt-title {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    padding: 12px 14px 8px;
}

.yt-proof-chip {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    padding: 10px 14px 12px;
}

.yt-proof-chip p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.4;
    margin: 0;
}

.yt-proof-chip cite {
    color: rgba(255, 255, 255, 0.5);
    display: block;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 600;
    margin-top: 4px;
}

/* ============================================================
   SOCIAL STRIP (sand section)
   ============================================================ */
.social-strip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.social-link {
    align-items: center;
    border: none;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    gap: 10px;
    padding: 12px 24px;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.social-link--youtube {
    background: #e60000;
}
.social-link--instagram {
    background: linear-gradient(
        135deg,
        #833ab4,
        #c13584,
        #e1306c,
        #fd1d1d,
        #f77737
    );
}
.social-link--facebook {
    background: #1877f2;
}

.social-link-icon {
    fill: #fff;
    flex-shrink: 0;
    height: 20px;
    width: 20px;
}

.social-link-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.social-link-cta {
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 700;
}

/* ============================================================
   CONNECT (social + personal message)
   ============================================================ */
.connect-section {
    background: var(--paper);
}

.connect-layout {
    align-items: start;
    display: grid;
    gap: 56px;
    grid-template-columns: 1fr 2fr;
}

.connect-social h3 {
    font-size: 1.2rem;
    margin-top: 6px;
}

.social-strip-grid--vertical {
    flex-direction: column;
    align-items: stretch;
    margin-top: 16px;
}

.connect-message h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    letter-spacing: -0.3px;
}

.connect-message p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 14px;
}

.connect-message strong {
    color: var(--ink);
}

/* ============================================================
   ETSY SHOP
   ============================================================ */
.etsy-section {
    background: var(--cream);
}

.etsy-logo {
    display: block;
    height: 36px;
    margin-top: 12px;
    width: auto;
}

.etsy-products {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.etsy-product {
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    transition:
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.etsy-product:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.etsy-product img {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    width: 100%;
}

.etsy-product-info {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 14px;
}

.etsy-product-info h3 {
    font-family: var(--sans);
    font-size: 0.96rem;
    font-weight: 700;
    margin: 0;
}

.etsy-price {
    color: var(--red);
    font-size: 0.94rem;
    font-weight: 800;
    margin: 0 !important;
    white-space: nowrap;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    border-top: 1px solid var(--stone);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    max-width: var(--max);
    padding: 48px 40px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links a {
    color: var(--ink-dim);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-copy {
    color: var(--ink-dim);
    font-size: 13px;
    margin-top: 0;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
    align-items: center;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 1000;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    max-height: 92vh;
    max-width: 100%;
    object-fit: contain;
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 1.6rem;
    height: 44px;
    line-height: 1;
    position: fixed;
    right: 20px;
    top: 20px;
    transition: background 0.15s ease;
    width: 44px;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   Sandbox / Archive page
   ============================================================ */
.sandbox-header {
    margin: 0 auto;
    max-width: var(--max);
    padding: 90px 26px 26px;
}

.sandbox-label {
    color: var(--red);
    display: inline-block;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.sandbox-title {
    font-size: clamp(2.1rem, 5.2vw, 3.5rem);
    margin-top: 10px;
    max-width: none;
}

.sandbox-desc {
    margin-top: 14px;
    max-width: 70ch;
}

.filter-bar,
.results-count,
.projects-grid {
    margin: 0 auto;
    max-width: var(--max);
    padding-left: 26px;
    padding-right: 26px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 18px;
    padding-top: 22px;
}

.filter-tag {
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: 999px;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 14px;
}

.filter-tag.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.filter-count {
    opacity: 0.75;
}

.results-count {
    color: #766e63;
    font-size: 0.9rem;
    padding-bottom: 14px;
}

.projects-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 70px;
}

.project-card {
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 20px;
    text-decoration: none;
}

.project-thumb {
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
    border: 1px solid var(--stone);
    border-radius: 8px;
    display: block;
    margin-bottom: 12px;
    object-fit: cover;
    width: 100%;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.project-tag {
    background: #f6ede2;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    text-transform: uppercase;
}

.project-year {
    color: #8b8377;
    font-size: 0.78rem;
    font-weight: 600;
}

.project-title {
    font-size: 1.18rem;
    line-height: 1.3;
    margin-top: 8px;
}

.project-desc {
    font-size: 0.95rem;
    margin-top: 8px;
}

.project-meta {
    color: #7a7266;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8rem;
    gap: 8px;
    margin-top: 12px;
}

.project-quote {
    border-top: 1px dashed var(--stone);
    color: #6b6358;
    font-size: 0.85rem;
    margin-top: 12px;
    padding-top: 12px;
}

/* ============================================================
   Consulting / intake pages
   ============================================================ */
.feature-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

.case-page {
    margin-top: 12px;
}

.case-layout {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    padding: 20px;
}

.panel h3 {
    font-family: var(--sans);
    font-size: 1.06rem;
    font-weight: 700;
}

.panel p {
    font-size: 0.95rem;
    margin-top: 8px;
}

.page-hero {
    padding-bottom: 30px;
}

.page-hero h1 {
    max-width: none;
}

.checklist {
    margin-top: 20px;
}

.checklist p {
    font-size: 0.97rem;
    margin-top: 8px;
}

/* ============================================================
   Consulting Intake Forms
   ============================================================ */

.intake-form {
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px 32px 32px;
}

@media (max-width: 560px) {
    .intake-form {
        padding: 22px 18px 24px;
    }
}

/* Each labeled field sits in its own block so rhythm is predictable. */
.intake-form .field {
    display: flex;
    flex-direction: column;
}

.intake-form label {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 0 6px;
}

.intake-form .label-hint {
    color: var(--ink-soft);
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0;
    margin-top: 2px;
}

.intake-form input,
.intake-form textarea,
.intake-form select {
    appearance: none;
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: 8px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.97rem;
    padding: 12px 14px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    width: 100%;
}

.intake-form input::placeholder,
.intake-form textarea::placeholder {
    color: #9c9286;
}

.intake-form textarea {
    line-height: 1.5;
    min-height: 120px;
    resize: vertical;
}

.intake-form input:hover,
.intake-form textarea:hover,
.intake-form select:hover {
    border-color: #b8ad9e;
}

.intake-form input:focus,
.intake-form textarea:focus,
.intake-form select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(213, 18, 0, 0.12);
    outline: 0;
}

/* A small helper line under the whole form (e.g. "I'll reply by email…") */
.form-note {
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Two-column row for name/email on wider screens */
.intake-form .form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 560px) {
    .intake-form .form-row {
        gap: 20px;
        grid-template-columns: 1fr;
    }
}

/* Required-field asterisk */
.intake-form .req {
    color: var(--red);
    font-weight: 700;
    margin-left: 2px;
}

/* Inline subtle hint beside a label (optional, parenthetical) */
.intake-form .subtle {
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0;
    margin-left: 4px;
}

/* Checkbox group (kept for future use — Design/Build no longer use it) */
.intake-form .form-checkgroup {
    border: none;
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.intake-form .form-checkgroup legend {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
    padding: 0;
}
.intake-form .form-checkgroup .form-sub {
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 400;
    margin: 0 0 8px;
}
.intake-form .form-check {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 0.95rem;
    font-weight: 500;
    gap: 10px;
    margin-top: 0;
    padding: 4px 0;
}
.intake-form .form-check input[type="checkbox"] {
    accent-color: var(--red);
    height: 18px;
    margin: 0;
    padding: 0;
    width: 18px;
}

/* Turnstile + submit row — group them so the widget doesn't feel orphaned */
.intake-form .form-footer {
    align-items: center;
    border-top: 1px solid var(--stone);
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 22px;
}

.intake-form .form-footer .cf-turnstile {
    flex-shrink: 0;
}

.intake-form .form-footer .btn-primary {
    padding: 12px 22px;
}

@media (max-width: 520px) {
    .intake-form .form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .intake-form .form-footer .btn-primary {
        width: 100%;
    }
    .intake-form .form-footer .cf-turnstile {
        align-self: center;
    }
}

/* Submit row (legacy — kept for any form still using it standalone) */
.intake-form .form-submit-row {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

/* Error banner above a form after a failed submit redirect */
.intake-form .form-error {
    background: #fdecea;
    border: 1px solid #f5b7b1;
    border-radius: 8px;
    color: #922b21;
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
    padding: 12px 14px;
}

/* Honeypot — hide visually and from AT, but keep in DOM for bots to see */
.intake-form .hp-field {
    height: 0;
    left: -9999px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 0;
}

/* Stand-alone turnstile widget spacing (for forms not using .form-footer) */
.intake-form > .cf-turnstile {
    margin: 0;
}

/* Small "Note" callout used on Quick Counsel etc. */
.form-callout {
    background: var(--sand);
    border-left: 3px solid var(--red);
    border-radius: 4px;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-top: 18px;
    padding: 12px 16px;
}
.form-callout strong {
    color: var(--red);
}

.consulting-hero {
    padding-bottom: 22px;
    padding-top: 26px;
}

.consulting-hero-grid {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.consulting-hero h1 {
    font-size: clamp(2rem, 4.1vw, 2.8rem);
    max-width: 17ch;
}

.consulting-hero .hero-lead {
    margin-top: 12px;
    max-width: 60ch;
}

.consulting-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.consulting-quick-points {
    color: var(--ink-soft);
    display: grid;
    gap: 8px;
    list-style: none;
    margin-top: 18px;
}

.consulting-quick-points li {
    font-size: 0.94rem;
    line-height: 1.35;
    padding-left: 18px;
    position: relative;
}

.consulting-quick-points li::before {
    background: var(--red);
    border-radius: 999px;
    content: "";
    height: 7px;
    left: 0;
    position: absolute;
    top: 6px;
    width: 7px;
}

.consulting-hero-proof {
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
}

.proof-shot {
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.proof-shot img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.proof-shot figcaption {
    background: rgba(15, 12, 10, 0.82);
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    left: 8px;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 6px 9px;
    position: absolute;
    text-transform: uppercase;
    top: 8px;
}

.consulting-proof-caption {
    color: #58534d;
    font-size: 0.87rem;
    grid-column: 1 / -1;
    line-height: 1.4;
    margin: 2px 0 0;
}

.step-num {
    align-items: center;
    background: var(--red);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.consulting-intake-shell {
    padding-top: 12px;
}

.consulting-intake-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.consulting-intake-head > p {
    margin-top: 10px;
    max-width: 62ch;
}

.consulting-intake-steps {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin-top: 14px;
    padding: 0;
}

.consulting-intake-steps li {
    align-items: center;
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    color: #302c27;
    display: flex;
    font-size: 0.93rem;
    font-weight: 600;
    gap: 10px;
    line-height: 1.35;
    padding: 12px 14px;
}

.consulting-intake-form-wrap {
    margin-top: 14px;
}

.consulting-support-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.consulting-panel {
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    padding: 16px;
}

.consulting-panel h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.consulting-checklist {
    color: var(--ink-soft);
    display: grid;
    gap: 9px;
    list-style: none;
    margin-top: 10px;
}

.consulting-checklist li {
    font-size: 0.9rem;
    line-height: 1.4;
    padding-left: 16px;
    position: relative;
}

.consulting-checklist li::before {
    background: var(--red);
    border-radius: 999px;
    content: "";
    height: 7px;
    left: 0;
    position: absolute;
    top: 6px;
    width: 7px;
}

.consulting-faq {
    margin-top: 10px;
}

.consulting-faq dt {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 10px;
}

.consulting-faq dt:first-child {
    margin-top: 0;
}

.consulting-faq dd {
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 4px 0 0;
}

@media (max-width: 1080px) {
    .consulting-hero-grid {
        grid-template-columns: 1fr;
    }

    .consulting-intake-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .consulting-support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .consulting-hero h1 {
        max-width: none;
    }

    .consulting-hero-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .consulting-intake-steps {
        grid-template-columns: 1fr;
    }
}

.before-after-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-card {
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    overflow: hidden;
}

.media-card img {
    display: block;
    height: auto;
    width: 100%;
}

.media-card figcaption {
    color: #6e6559;
    font-size: 0.88rem;
    padding: 12px 14px;
}

.supply-list {
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    display: grid;
    gap: 0;
    margin-top: 16px;
}

.supply-list div {
    border-top: 1px solid var(--stone);
    display: grid;
    gap: 6px;
    padding: 14px 16px;
}

.supply-list div:first-child {
    border-top: 0;
}

.supply-list strong {
    font-size: 0.95rem;
}

.supply-list span {
    color: #6e6559;
    font-size: 0.9rem;
}

/* ============================================================
   MASONRY PHOTO GRID — project detail v2
   ============================================================ */
.masonry {
    columns: 3;
    column-gap: 16px;
    margin: 0 auto;
    margin-top: 48px;
    max-width: var(--max);
    padding: 0 26px 60px;
}

.masonry-card {
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    break-inside: avoid;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 16px;
    overflow: hidden;
    transition:
        box-shadow 0.2s ease,
        transform 0.15s ease;
    width: 100%;
}

.masonry-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.masonry-card img {
    display: block;
    height: auto;
    width: 100%;
}

.masonry-card-text {
    padding: 12px 14px 14px;
}

.masonry-card-text h3 {
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.masonry-card-text p {
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 4px;
}

/* Masonry quote cards */
.masonry-quote-card {
    background: var(--ink);
    border-radius: var(--radius);
    break-inside: avoid;
    display: inline-block;
    margin-bottom: 16px;
    padding: 28px 28px 24px;
    width: 100%;
}

.masonry-quote-card::before {
    color: var(--red);
    content: "\201C";
    display: block;
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 0.8;
    margin-bottom: 0px;
}

.masonry-quote-card blockquote {
    color: #fff;
    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.65;
    margin: 0 0 16px;
}

.masonry-quote-card cite {
    color: var(--ink-dim);
    display: block;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Caption lightbox */
.mlb {
    align-items: center;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 1000;
}

.mlb.open {
    display: flex;
}

.mlb-inner {
    max-height: 92vh;
    max-width: 960px;
    width: 100%;
}

.mlb-img {
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: block;
    max-height: 72vh;
    object-fit: contain;
    width: 100%;
}

.mlb-caption {
    background: #fff;
    border-radius: 0 0 10px 10px;
    padding: 16px 20px 18px;
}

.mlb-title {
    font-family: var(--sans);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.mlb-desc {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 4px;
}

.mlb-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 1.6rem;
    height: 44px;
    line-height: 1;
    position: fixed;
    right: 20px;
    top: 20px;
    transition: background 0.15s ease;
    width: 44px;
    z-index: 1001;
}

.mlb-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 1024px) {
    .masonry {
        columns: 2;
    }
}

@media (max-width: 760px) {
    .masonry {
        columns: 1;
        padding-left: 18px;
        padding-right: 18px;
    }

    .mlb-inner {
        max-width: 100%;
    }

    .mlb-img {
        max-height: 60vh;
    }
}

/* ============================================================
   PROJECT STORY PAGE — image-driven case study
   ============================================================ */
.project-back {
    color: var(--ink-soft);
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 auto;
    max-width: var(--max);
    padding: 28px 40px 0;
    text-decoration: none;
}

.project-back:hover {
    color: var(--red);
}

.project-splash {
    margin: 0;
    overflow: hidden;
    width: 100%;
}

.project-splash img {
    display: block;
    height: 54vh;
    max-height: 580px;
    min-height: 300px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.project-diagram {
    margin: 0 auto;
    max-width: var(--max);
    padding: 0 40px 40px;
}

.project-diagram img {
    display: block;
    height: auto;
    width: 100%;
}

.project-header {
    padding-top: 28px;
    padding-bottom: 0;
}

.project-header h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.project-brief {
    background: var(--sand);
    border-left: 4px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 28px 0 0;
    padding: 22px 28px;
}

.project-note {
    align-items: top;
    background: transparent none;
    border-radius: var(--radius);
    display: flex;
    gap: 36px;
    margin: 32px auto 48px;
    max-width: calc(var(--max) - 52px);
    padding: 36px 48px;
    border: 3px dashed #eee;
}

.project-note-face {
    flex-shrink: 0;
    width: 96px;
}

.project-note-face img {
    display: block;
    width: 100%;
    margin-top: 5px;
}

.project-note-body {
    flex: 1;
}

.project-note-body p {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1em;
}

.project-note-body p:last-child {
    margin-bottom: 0;
}

.project-brief h3 {
    color: var(--red);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.project-brief ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
}

.project-brief li {
    color: var(--ink);
    font-size: 0.96rem;
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
}

.project-brief li::before {
    color: var(--red);
    content: "→";
    font-weight: 700;
    left: 0;
    position: absolute;
}

/* Story wrapper */
.story {
    margin: 0 auto;
    max-width: var(--max);
    padding: 0 26px 60px;
}

.story-block {
    margin-top: 52px;
}

.story-block > h2 {
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

/* Photo layouts */
.photo-full img {
    border-radius: var(--radius);
    display: block;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    width: 100%;
}

.photo-pair {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.photo-trio {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
}

.story-img-wrap {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
}

.story-img-wrap.tall {
    aspect-ratio: 3 / 4;
}

.story-img-wrap.portrait {
    aspect-ratio: 2 / 3;
}

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

.photo-caption {
    color: var(--ink-soft);
    font-size: 0.84rem;
    line-height: 1.55;
    margin-top: 10px;
}

/* Pull quote */
.pull-quote {
    border-left: 3px solid #ffdd00;
    margin: 44px 0;
    padding: 10px 26px;
}

.pull-quote p {
    color: var(--ink);
    font-family: var(--sans);
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.pull-quote cite {
    color: var(--ink-soft);
    display: block;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 700;
    margin-top: 8px;
}

/* Client quotes grid */
.client-quotes {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
}

.client-quote-card {
    background: var(--sand);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
}

.client-quote-card p {
    color: var(--ink);
    font-size: 0.94rem;
    font-style: italic;
    line-height: 1.55;
    margin: 0;
}

.client-quote-card cite {
    color: var(--ink-soft);
    display: block;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    margin-top: 10px;
}

/* ============================================================
   CONSULTING PAGE — DMMT redesign (ci- prefix)
   ============================================================ */

/* -------------------------------------------------------
   HERO CAROUSEL — rotating before/after slideshow
   ------------------------------------------------------- */
.ci-carousel {
    background: #1e1a15;
    height: 54vh;
    max-height: 580px;
    min-height: 300px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ci-slide {
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.9s ease;
    z-index: 1;
}

.ci-slide.active {
    opacity: 1;
    z-index: 2;
}

.ci-slide img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

/* Overlaid badge — bottom-left, dimensions + state */
.ci-carousel-badge {
    background: rgba(234, 78, 0, 0.72);
    border-radius: 6px;
    bottom: 18px;
    color: #fff;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 700;
    left: 18px;
    letter-spacing: 0.05em;
    padding: 7px 16px;
    position: absolute;
    text-transform: uppercase;
    transition: background 0.3s ease;
    z-index: 5;
}

.ci-carousel-badge--after {
    background: rgba(0, 183, 61, 0.88);
}

.ci-carousel--large-badge .ci-carousel-badge {
    font-size: 1.64rem;
    padding: 12px 28px;
}

/* Thin progress bar across the bottom */
.ci-carousel-progress {
    background: rgba(255, 255, 255, 0.18);
    bottom: 0;
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 6;
}

.ci-carousel-progress-bar {
    background: rgba(255, 255, 255, 0.7);
    height: 100%;
    width: 0%;
}

/* Project dots — bottom right */
.ci-carousel-dots {
    bottom: 14px;
    display: flex;
    gap: 7px;
    position: absolute;
    right: 18px;
    z-index: 6;
}

.ci-dot {
    background: rgba(255, 255, 255, 0.38);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    height: 8px;
    padding: 0;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
    width: 8px;
}

.ci-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* CTA block beneath the split */
.ci-hero-cta {
    padding: 48px 26px 40px;
    text-align: center;
}

.ci-hero-cta h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.06;
    max-width: none;
}

.ci-hero-cta .hero-lead {
    margin: 12px auto 0;
    max-width: 42ch;
}

.ci-cta-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 26px;
}

.ci-cta-row .btn {
    font-size: 1.06rem;
    padding: 15px 38px;
}

.ci-micro {
    color: var(--ink-soft);
    font-size: 0.82rem;
    margin-top: 14px;
    opacity: 0.65;
}

/* Proof strip — 3 project before/after pairs */
.ci-proof {
    background: var(--sand);
    border-bottom: 1px solid var(--stone);
    border-top: 1px solid var(--stone);
    padding: 40px 26px 44px;
}

.ci-proof-inner {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: var(--max);
}

.ci-project-pair {
    display: grid;
    gap: 5px;
    grid-template-columns: 1fr 1fr;
}

.ci-project-pane {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

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

.ci-pane-label {
    background: rgba(0, 0, 0, 0.54);
    border-radius: 4px;
    bottom: 6px;
    color: #fff;
    font-size: 0.59rem;
    font-weight: 800;
    left: 6px;
    letter-spacing: 0.1em;
    padding: 3px 7px;
    position: absolute;
    text-transform: uppercase;
}

.ci-pane-label--after {
    background: #2a7a47;
    left: auto;
    right: 6px;
}

.ci-project-meta {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
    grid-column: 1 / -1;
    margin-top: 10px;
    text-align: center;
}

/* Explore link on proof cards */
.ci-project-explore {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    grid-column: 1 / -1;
    text-align: center;
    text-decoration: none;
}

.ci-project-explore:hover {
    text-decoration: underline;
}

/* Intake form section */
.ci-intake {
    padding-bottom: 16px;
    padding-top: 10px;
}

.ci-intake-head {
    margin: 0 auto 32px;
    max-width: 52ch;
    text-align: center;
}

.ci-intake-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin-top: 8px;
}

.ci-intake-head p {
    color: var(--ink-soft);
    font-size: 0.96rem;
    margin-top: 8px;
}

.ci-reassurances {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 30px;
    justify-content: center;
    list-style: none;
    margin: 28px auto 0;
    max-width: 60ch;
}

.ci-reassurances li {
    color: var(--ink-soft);
    font-size: 0.85rem;
    padding-left: 18px;
    position: relative;
}

.ci-reassurances li::before {
    color: #2a7a47;
    content: "✓";
    font-weight: 800;
    left: 0;
    position: absolute;
}

/* FAQ — horizontal row, minimal */
.ci-faq {
    border-top: 1px solid var(--stone);
    padding: 32px 26px 56px;
}

.ci-faq-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: var(--max);
}

.ci-faq-item {
    border-left: 1px solid var(--stone);
    padding: 4px 24px;
}

.ci-faq-item:first-child {
    border-left: none;
    padding-left: 0;
}

.ci-faq-item strong {
    color: var(--ink);
    display: block;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.ci-faq-item span {
    color: var(--ink-soft);
    display: block;
    font-size: 0.84rem;
    line-height: 1.4;
    margin-top: 3px;
}

@media (max-width: 900px) {
    .ci-proof-inner {
        gap: 28px;
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .ci-faq-inner {
        grid-template-columns: 1fr;
    }

    .ci-faq-item {
        border-left: none;
        border-top: 1px solid var(--stone);
        padding: 16px 0;
    }

    .ci-faq-item:first-child {
        border-top: none;
        padding-top: 0;
    }
}

@media (max-width: 760px) {
    .ci-carousel {
        height: 52vw;
        min-height: 220px;
    }

    .ci-carousel-badge {
        bottom: 10px;
        font-size: 0.72rem;
        left: 10px;
        padding: 5px 12px;
    }

    .ci-hero-cta {
        padding: 32px 20px 28px;
    }

    .ci-cta-row .btn {
        justify-content: center;
        width: 100%;
    }
}

/* ============================================================
   Service Tier Selector  (consulting/index.php)
   ============================================================ */
.service-selector {
    padding-top: 56px;
    text-align: center;
}

.service-heading {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 36px;
}

.service-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: 960px;
}

.service-card {
    align-items: stretch;
    background: var(--paper);
    border: 2px solid var(--stone);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    padding: 32px 24px 28px;
    text-align: left;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        transform 0.15s;
}

.service-card:hover {
    border-color: var(--ink-soft);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.service-card.selected {
    border-color: var(--red);
    box-shadow: 0 4px 20px rgba(226, 11, 7, 0.13);
    transform: translateY(-3px);
}

.service-card-letter {
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 12px;
}

.service-card-title strong {
    color: var(--red);
    font-weight: 700;
}

.service-card-desc {
    color: var(--ink-soft);
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 20px;
}

.service-card-price {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.84rem;
    margin-bottom: 16px;
}

.service-card-price strong {
    color: #2e8b57;
}

.service-card-select {
    background: var(--sand);
    border: 1px solid var(--stone);
    border-radius: 4px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 0;
    text-align: center;
    text-transform: uppercase;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
}

.service-card.selected .service-card-select {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.service-actions {
    margin-top: 28px;
}

.service-next[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.4;
    pointer-events: none;
}

.service-divider {
    align-items: center;
    display: flex;
    gap: 16px;
    margin: 36px auto;
    max-width: 400px;
}

.service-divider::before,
.service-divider::after {
    background: var(--stone);
    content: "";
    flex: 1;
    height: 1px;
}

.service-divider span {
    color: var(--ink-soft);
    cursor: default;
    font-family: var(--mono);
    font-size: 0.82rem;
    text-transform: lowercase;
}

/* Hidden subscriber card */
.service-card--subscriber {
    display: none;
    opacity: 0;
    transform: translateY(-12px);
}

.service-card--subscriber.revealed {
    animation: subscriberReveal 0.4s ease forwards;
    display: flex;
}

.service-grid--alt.has-subscriber {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
}

@keyframes subscriberReveal {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-alt {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.service-alt a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-grid--alt {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
}

.service-card--link {
    color: inherit;
    text-decoration: none;
}

.service-card--link .service-card-select {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Contact fallback — consulting/index.php */
.ci-contact {
    padding-top: 24px;
}

.ci-contact-head {
    margin: 0 auto 20px;
    max-width: 540px;
    text-align: center;
}

.ci-contact-head h2 {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
}

.ci-contact-head p {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin-top: 8px;
}

/* ============================================================
   Service Detail Sub-Pages  (brainstorm / design / build)
   ============================================================ */
.service-back {
    border: 1px solid var(--stone);
    border-radius: 999px;
    color: var(--ink-soft);
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    padding: 6px 14px 6px 12px;
    text-decoration: none;
    transition: all 0.15s;
}

.service-back:hover {
    background: var(--sand);
    border-color: #b8ad9e;
    color: var(--red);
}

.service-detail {
    margin: 0 auto;
    max-width: 760px;
    padding-bottom: 0;
}

.service-detail .eyebrow {
    margin-bottom: 8px;
}

.service-detail h1 {
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 14px;
}

.service-detail h1 strong {
    color: var(--red);
    font-weight: inherit;
}

.service-detail .hero-lead {
    border-top: 1px dashed #ddd;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: 18px;
    padding: 16px 0;
}

.service-includes {
    margin-top: 36px;
}

.service-includes h3 {
    font-size: 1rem;
    margin-bottom: 14px;
}

.service-includes ul {
    list-style: none;
    padding: 0;
}

.service-includes li {
    border-bottom: 1px solid var(--stone);
    font-size: 0.92rem;
    line-height: 1.55;
    padding: 10px 0 10px 28px;
    position: relative;
}

.service-includes li::before {
    color: var(--red);
    content: "✓";
    font-weight: 700;
    left: 0;
    position: absolute;
}

.service-price-callout {
    background: var(--sand);
    border: 1px solid var(--stone);
    border-radius: 8px;
    margin-top: 32px;
    padding: 24px 28px;
    text-align: center;
}

.service-price-callout .price-label {
    color: var(--ink-soft);
    display: block;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.service-price-callout .price-amount {
    color: var(--ink);
    display: block;
    font-size: 2rem;
    font-weight: 700;
}
.service-form-section {
    margin: 28px auto 0;
    max-width: 760px;
    padding-top: 0;
}

.service-form-section h2 {
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    margin-bottom: 8px;
    text-align: center;
}

.service-form-section > p {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-align: center;
}

.service-form-section .intake-form {
    max-width: none;
}

@media (max-width: 700px) {
    .service-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .service-card {
        padding: 28px 20px 24px;
    }

    .service-detail {
        padding-left: 0;
        padding-right: 0;
    }

    .service-grid--alt.has-subscriber {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* ============================================================
   Post / Article pages
   ============================================================ */
.post-back {
    margin: 0 auto;
    max-width: var(--max);
    padding: 28px 40px 0;
}

.post-back a {
    align-items: center;
    color: var(--ink-dim);
    display: inline-flex;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 700;
    gap: 6px;
    letter-spacing: 0.3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.post-back a:hover {
    color: var(--red);
}

.post-article {
    margin: 0 auto;
    max-width: 780px;
    padding: 48px 40px 100px;
}

.post-header {
    border-bottom: 1px solid var(--stone);
    margin-bottom: 48px;
    padding-bottom: 32px;
}

.post-eyebrow {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.post-date {
    color: var(--ink-dim);
    font-family: var(--mono);
    font-size: 0.78rem;
}

.post-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.12;
    margin-bottom: 18px;
}

.post-desc {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Prose body */
.post-body > * + * {
    margin-top: 1.4em;
}

.post-body p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.72;
}

.post-body p strong {
    color: var(--ink);
}

.post-body h2 {
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2.5em;
}

.post-body h3 {
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2em;
}

.post-body h4 {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.8em;
}

.post-body ul,
.post-body ol {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 1.6em;
}

.post-body ul {
    list-style: disc;
}

.post-body ol {
    list-style: decimal;
}

.post-body li + li {
    margin-top: 0.4em;
}

.post-body a {
    color: var(--red);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.post-body a:hover {
    color: var(--red-hover);
}

.post-body figure {
    margin: 2em 0;
}

.post-body figure img {
    border-radius: 8px;
    display: block;
    height: auto;
    max-width: 100%;
}

.post-body figcaption {
    color: var(--ink-dim);
    font-size: 0.82rem;
    margin-top: 8px;
    text-align: center;
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--stone);
    margin: 2em 0;
}

.post-body pre {
    background: var(--ink);
    border-radius: 8px;
    color: #e8e2d6;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.6;
    overflow-x: auto;
    padding: 20px 22px;
}

.post-body code {
    background: var(--sand);
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 0.85em;
    padding: 2px 5px;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-callout {
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.65;
    padding: 16px 20px;
}

.post-youtube {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin: 2em 0;
    overflow: hidden;
    position: relative;
}

.post-youtube iframe {
    border: none;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.post-gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    margin: 2em 0;
}

.post-gallery img {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

/* Lightbox trigger behaviour in post bodies */
a.lightbox-trigger {
    cursor: zoom-in;
    display: block;
    line-height: 0;
}

a.lightbox-trigger img {
    transition: opacity 0.15s ease;
}

a.lightbox-trigger:hover img {
    opacity: 0.85;
}

.post-footer-nav {
    border-top: 1px solid var(--stone);
    margin-top: 64px;
    padding-top: 32px;
}

.post-footer-nav a {
    align-items: center;
    color: var(--ink-dim);
    display: inline-flex;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 700;
    gap: 6px;
    letter-spacing: 0.3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.post-footer-nav a:hover {
    color: var(--red);
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 1024px) {
    .ba-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ba-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .connect-layout {
        grid-template-columns: 1fr;
    }

    .social-strip-grid--vertical {
        flex-direction: row;
        justify-content: flex-start;
    }

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

    .case-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 760px) {
    body {
        font-size: 17px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .section,
    .sandbox-header,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        min-height: 70vh;
        padding: 80px 20px 60px;
    }

    .hero h1 {
        font-size: clamp(32px, 5vw, 42px);
    }

    .hero-sub {
        font-size: 18px;
    }

    .hero-actions {
        margin-top: 32px;
    }

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

    .ba-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .principles-grid,
    .yt-grid,
    .etsy-products,
    .before-after-grid {
        grid-template-columns: 1fr;
    }

    .principle-card {
        padding: 30px 24px;
    }

    .social-strip-grid--vertical {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding-left: 18px;
        padding-right: 18px;
    }

    .filter-bar,
    .results-count {
        padding-left: 18px;
        padding-right: 18px;
    }

    .photo-pair,
    .photo-trio,
    .client-quotes {
        grid-template-columns: 1fr;
    }

    .project-splash img {
        max-height: 320px;
        min-height: 200px;
    }

    .pull-quote {
        margin: 32px 0;
    }

    .post-article,
    .post-back {
        padding-left: 20px;
        padding-right: 20px;
    }

    .post-gallery {
        grid-template-columns: 1fr;
    }
}
