/* ==========================================================================
   GALLERY + LIGHTBOX
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GALLERY PAGE LAYOUT
   -------------------------------------------------------------------------- */
.gallery-page {
    padding-top: var(--nav-height);
    position: relative;
    isolation: isolate;
}

/* Ambient atmosphere — soft brass-tinted radial wash + subtle ink wash that
   moves with scroll-parallax. Replaces the "floating on plain white" feel. */
.gallery-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 12% 8%, rgba(184, 149, 106, 0.08) 0%, rgba(184, 149, 106, 0) 60%),
        radial-gradient(ellipse 70% 60% at 92% 32%, rgba(11, 12, 14, 0.06) 0%, rgba(11, 12, 14, 0) 65%),
        radial-gradient(ellipse 90% 40% at 50% 100%, rgba(184, 149, 106, 0.05) 0%, rgba(184, 149, 106, 0) 55%);
}
/* Whisper-fine grain texture for depth — pure CSS, no asset needed */
.gallery-page::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    background-image: radial-gradient(circle at 1px 1px, rgba(11, 12, 14, 0.04) 1px, transparent 1.2px);
    background-size: 3px 3px;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, transparent 100%);
}

.gallery-page-head {
    padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
    max-width: var(--container-wide);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: var(--space-6);
    border-bottom: 1px solid var(--rule);
}

.gallery-page-head .eyebrow {
    margin-bottom: var(--space-3);
}

.gallery-page-head h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: -0.025em;
}
.gallery-page-head h1 em { font-style: italic; color: var(--accent-deep); }

.gallery-page-head .description {
    max-width: 42ch;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: var(--space-3);
}

/* Hero CTA block — appears under the web-design page description.
   Pairs the "Get a free quote" button with a soft micro-copy line
   so the button feels like an answer to the page intro, not a
   marketing tack-on. */
.wd-hero-cta {
    margin-top: clamp(1.25rem, 2vw, 1.75rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.wd-hero-cta-note {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.gallery-page-meta {
    text-align: right;
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.5;
}
.gallery-page-meta strong {
    display: block;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.2em;
}

@media (max-width: 640px) {
    .gallery-page-head { grid-template-columns: 1fr; }
    .gallery-page-meta { text-align: left; }
}

/* --------------------------------------------------------------------------
   2. MASONRY
   CSS Grid + per-item aspect-ratio. Every gallery <img> has explicit
   width/height attributes (added by scripts/fix_gallery_images.py), so the
   browser knows each tile's intrinsic aspect ratio at first paint. We use
   `grid-auto-flow: dense` to pack items efficiently. No JS reflows. No
   layout shift. No "blank space above tiles" — every cell starts at its
   row track and the picture wrapper has `aspect-ratio` baked in.
   -------------------------------------------------------------------------- */
.gallery-masonry {
    --cols: 3;
    --gap: clamp(0.75rem, 1.4vw, 1.25rem);
    /* Vertical spacing is intentionally larger than horizontal — gives the
       grid more breathing room and stops tall portraits from feeling
       cramped against the next tile. JS bakes --vgap-px into each item's
       row-span so the spacing actually pushes the next item down (margins
       and row-gap don't visibly separate items in this grid; row-gap would
       also multiply through every row track inside a tall span). */
    --vgap: clamp(2rem, 3.6vw, 3.25rem);
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    grid-auto-rows: 1px;
    grid-auto-flow: row dense;
    row-gap: 0;
    column-gap: var(--gap);
    align-items: start;
    max-width: var(--container-wide);
    margin: clamp(2.5rem, 5vw, 4rem) auto;
    padding-inline: var(--gutter);
}

@media (max-width: 1100px) { .gallery-masonry { --cols: 2; } }
@media (max-width: 640px)  { .gallery-masonry { --cols: 1; } }

.gallery-item {
    /* JS sets --row-span from each image's intrinsic aspect ratio +
       --vgap. Default (260) gives a sensible placeholder before JS runs. */
    grid-row-end: span var(--row-span, 260);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    cursor: zoom-in;
    background: var(--ink-90);
    display: block;
    box-shadow: 0 16px 38px -28px rgba(11, 12, 14, 0.30);
    transition: box-shadow 0.4s var(--ease-out-quart),
                transform 0.4s var(--ease-out-quart);
}
.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 60px -24px rgba(11, 12, 14, 0.42);
}
@media (prefers-reduced-motion: reduce) {
    .gallery-item { transition: none; }
    .gallery-item:hover { transform: none; }
}

.gallery-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out-quart);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,12,14,0.32), rgba(11,12,14,0) 40%);
    opacity: 0;
    transition: opacity var(--d-2);
    pointer-events: none;
}

.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover::after { opacity: 1; }

.gallery-item-num {
    position: absolute;
    top: 0.6rem;
    left: 0.8rem;
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    letter-spacing: 0.05em;
    color: rgba(245,242,236,0.0);
    transition: color var(--d-2);
    pointer-events: none;
    z-index: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.gallery-item:hover .gallery-item-num { color: rgba(245,242,236,0.9); }

/* --------------------------------------------------------------------------
   3. GALLERY FILTERS (optional, for future)
   -------------------------------------------------------------------------- */
.gallery-filters {
    max-width: var(--container-wide);
    margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
    padding-inline: var(--gutter);
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex-wrap: wrap;
}
.filter-pill {
    padding: 0.55rem 1rem;
    border: 1px solid var(--rule);
    background: transparent;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--d-1), color var(--d-1), border-color var(--d-1);
}
.filter-pill:hover { color: var(--text); border-color: var(--text); }
.filter-pill.is-active {
    background: var(--ink-10);
    color: var(--bg);
    border-color: var(--ink-10);
}

/* --------------------------------------------------------------------------
   4. LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(11, 12, 14, 0.96);
    opacity: 0;
    transition: opacity var(--d-2);
}

.lightbox.is-active {
    display: flex;
    opacity: 1;
}

.lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    color: rgba(245,242,236,0.78);
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lightbox-counter {
    font-family: var(--font-mono);
}
.lightbox-counter .num {
    color: var(--accent-soft);
}

.lightbox-close {
    position: relative;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(245,242,236,0.78);
    transition: color var(--d-1), transform var(--d-2) var(--ease-out-expo);
}
.lightbox-close::before, .lightbox-close::after {
    content: '';
    position: absolute;
    width: 18px; height: 1px;
    background: currentColor;
}
.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after  { transform: rotate(-45deg); }
.lightbox-close:hover { color: #F5F2EC; transform: rotate(90deg); }

.lightbox-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-inline: clamp(1rem, 4vw, 4rem);
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity var(--d-2) var(--ease-out-quart),
                transform var(--d-3) var(--ease-out-expo);
}
.lightbox-image.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-spinner {
    position: absolute;
    width: 28px; height: 28px;
    border: 1px solid rgba(245,242,236,0.18);
    border-top-color: var(--accent-soft);
    border-radius: 50%;
    animation: lbSpin 0.9s linear infinite;
}
@keyframes lbSpin { to { transform: rotate(360deg); } }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px; height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(245,242,236,0.78);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    transition: background var(--d-1), border-color var(--d-1), color var(--d-1);
}
.lightbox-nav::before {
    content: '';
    width: 9px; height: 9px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-prev::before { transform: rotate(-135deg) translate(-2px, -2px); }
.lightbox-next { right: 1.5rem; }
.lightbox-next::before { transform: rotate(45deg) translate(-2px, -2px); }

.lightbox-nav:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-soft);
    color: #F5F2EC;
}

.lightbox-cap {
    padding: 1.25rem 1.5rem 1.5rem;
    color: rgba(245,242,236,0.62);
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    letter-spacing: 0.05em;
    text-align: center;
    min-height: 3rem;
}

@media (max-width: 640px) {
    .lightbox-nav { width: 44px; height: 44px; }
    .lightbox-prev { left: 0.75rem; }
    .lightbox-next { right: 0.75rem; }
    .lightbox-frame { padding-inline: 0.5rem; }
}

/* --------------------------------------------------------------------------
   5. PRINTS PAGE STYLES
   -------------------------------------------------------------------------- */
.prints-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) var(--gutter) clamp(5rem, 10vw, 9rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.print-card {
    background: transparent;
}
.print-card-image {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--ink-90);
    border-radius: var(--radius-card);
    margin-bottom: var(--space-4);
}
.print-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo);
}
.print-card:hover .print-card-image img { transform: scale(1.04); }

.print-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}
.print-card h3 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.print-card .price {
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. PRINTS PAGE — info rows + Stieglitz pull-quote
   -------------------------------------------------------------------------- */
.prints-info {
    padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}
.prints-info-inner {
    max-width: var(--container-narrow);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 4.5rem);
}

.prints-info-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--rule);
}
.prints-info-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.prints-info-label .eyebrow {
    color: var(--text-muted);
}

.prints-info-body h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.875rem, 3.4vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.012em;
    margin-bottom: var(--space-5);
}
.prints-info-body h2 em {
    font-style: italic;
    color: var(--accent-deep);
}
.prints-info-body p {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-soft);
    max-width: 56ch;
    margin-bottom: var(--space-5);
}
.prints-info-body .link-underline {
    color: var(--text);
}

.prints-quote {
    padding: clamp(4rem, 9vw, 8rem) var(--gutter) clamp(5rem, 11vw, 9rem);
    text-align: center;
    background: var(--bg-muted);
    border-top: 1px solid var(--rule);
}
.prints-quote figure {
    max-width: 760px;
    margin-inline: auto;
}
.prints-quote blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.375rem);
    line-height: 1.35;
    letter-spacing: -0.005em;
    color: var(--text);
    margin-bottom: var(--space-5);
}
.prints-quote figcaption {
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width: 720px) {
    .prints-info-row { grid-template-columns: 1fr; gap: var(--space-4); }
    .prints-info-label .eyebrow { margin-bottom: var(--space-2); }
}

/* --------------------------------------------------------------------------
   7. REAL ESTATE PAGE — section heads, video features, deliverables, CTA
   -------------------------------------------------------------------------- */
.re-section-head {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
}
.re-section-head .eyebrow {
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}
.re-section-head h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    max-width: 18ch;
}
.re-section-head h2 em {
    font-style: italic;
    color: var(--accent-deep);
}

/* Video intro spacer */
.re-video-intro {
    border-top: 1px solid var(--rule);
    margin-top: clamp(3rem, 6vw, 5rem);
}
.re-video-intro-inner .re-section-head { padding-top: clamp(4rem, 8vw, 7rem); }

/* Alternating video + text feature row */
.re-video-feature {
    padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
}
.re-video-feature-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.re-video-feature--reverse .re-video-feature-inner {
    grid-template-columns: 1.15fr 0.85fr;
}
.re-video-feature--reverse .re-video-text {
    order: 2;
}
.re-video-feature--reverse .re-video-frame {
    order: 1;
}

.re-video-text .eyebrow {
    margin-bottom: var(--space-3);
}
.re-video-text h3 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.875rem, 3.6vw, 2.875rem);
    line-height: 1.04;
    letter-spacing: -0.018em;
    margin-bottom: var(--space-5);
}
.re-video-text h3 em {
    font-style: italic;
    color: var(--accent-deep);
}
.re-video-text p {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-soft);
    max-width: 50ch;
}

.re-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink-90);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}
.re-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Vertical 9:16 (mobile-shot tour) — narrower, capped, centered in its column. */
.re-video-frame--vertical {
    aspect-ratio: 9 / 16;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    background: #000;
}
.re-video-frame--vertical video {
    object-fit: contain;
}
/* Re-balance the row so a vertical frame doesn't get a giant column reserved for it. */
.re-video-feature--vertical .re-video-feature-inner {
    grid-template-columns: 1fr 0.6fr;
    align-items: center;
}
.re-video-feature--vertical.re-video-feature--reverse .re-video-feature-inner {
    grid-template-columns: 0.6fr 1fr;
}

@media (max-width: 880px) {
    .re-video-feature--vertical .re-video-feature-inner,
    .re-video-feature--vertical.re-video-feature--reverse .re-video-feature-inner {
        grid-template-columns: 1fr;
    }
    .re-video-frame--vertical { max-width: 320px; }
}

@media (max-width: 880px) {
    .re-video-feature-inner,
    .re-video-feature--reverse .re-video-feature-inner {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .re-video-feature--reverse .re-video-text  { order: 0; }
    .re-video-feature--reverse .re-video-frame { order: 0; }
}

/* Deliverables — six-card grid */
.re-deliverables {
    background: var(--bg-muted);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding-bottom: clamp(4rem, 8vw, 7rem);
    margin-top: clamp(3rem, 6vw, 5rem);
}
.re-deliverables-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
}
.re-deliverables .re-section-head {
    padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(2rem, 4vw, 3rem);
    margin: 0;
}

.re-deliverables-grid {
    list-style: none;
    margin: 0;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.re-deliverable {
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-card);
    transition: transform var(--d-2) var(--ease-out-quart), box-shadow var(--d-2);
}
.re-deliverable:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.re-deliverable .num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: var(--space-4);
}
.re-deliverable h4 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: var(--space-3);
}
.re-deliverable p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 1024px) {
    .re-deliverables-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .re-deliverables-grid { grid-template-columns: 1fr; }
}

/* Get-a-quote CTA */
.re-cta {
    padding: clamp(5rem, 10vw, 9rem) var(--gutter);
    text-align: center;
}
.re-cta-inner {
    max-width: 720px;
    margin: 0 auto;
}
.re-cta h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: var(--space-4) 0 var(--space-5);
}
.re-cta h2 em {
    font-style: italic;
    color: var(--accent-deep);
}
.re-cta p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 56ch;
    margin: 0 auto var(--space-7);
}
.re-cta-buttons {
    display: inline-flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================================
   WEB DESIGN (/web-design.html)
   Showcases client web work. Reuses .re-* patterns where possible
   (numbered section heads, italic-em headlines, CTA block) and
   layers in wd-* for the project-card-specific bits: browser-chrome
   mockup wrapper, project meta line, alternating feature rows.
   ============================================================ */

.wd-manifesto {
    padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--rule);
}
.wd-manifesto-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.wd-manifesto .eyebrow { margin-bottom: 0; }
.wd-manifesto p {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0;
    max-width: 32ch;
}
.wd-manifesto p em {
    font-style: italic;
    color: var(--accent-deep);
    background: linear-gradient(transparent 62%, rgba(184, 149, 106, 0.18) 62%, rgba(184, 149, 106, 0.18) 92%, transparent 92%);
    padding: 0 0.05em;
}
@media (max-width: 880px) {
    .wd-manifesto-inner { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Section head used between feature blocks — mirrors .re-section-head
   but with a more editorial center-aligned variant for /web-design. */
.wd-section-head {
    padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
    max-width: var(--container-wide);
    margin: 0 auto;
}
.wd-section-head .eyebrow { margin-bottom: var(--space-4); }
.wd-section-head h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 22ch;
}
.wd-section-head h2 em {
    font-style: italic;
    color: var(--accent-deep);
}

/* Alternating case-study row — same skeleton as .re-video-feature but
   wider image column (browsers are landscape, video tours are already
   16:9 so they ended up the same balance) and adds the project meta. */
.wd-feature {
    padding: clamp(2rem, 4vw, 3.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
}
.wd-feature-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.wd-feature--reverse .wd-feature-inner {
    grid-template-columns: 1.22fr 0.78fr;
}
.wd-feature--reverse .wd-text  { order: 2; }
.wd-feature--reverse .wd-frame { order: 1; }

.wd-text .eyebrow { margin-bottom: var(--space-3); }
.wd-text h3 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.875rem, 3.6vw, 2.875rem);
    line-height: 1.04;
    letter-spacing: -0.018em;
    margin: 0 0 var(--space-3);
    color: var(--text);
}
.wd-text h3 em {
    font-style: italic;
    color: var(--accent-deep);
}
.wd-meta {
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 var(--space-5);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.wd-meta span::before {
    content: "·";
    margin-right: 0.55rem;
    color: var(--accent);
}
.wd-meta span:first-child::before { content: none; }
.wd-text p {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-soft);
    max-width: 50ch;
    margin: 0 0 var(--space-6);
}
.wd-visit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: var(--t-small);
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--text);
    transition: color var(--d-2), border-color var(--d-2), transform var(--d-2);
}
.wd-visit:hover {
    color: var(--accent-deep);
    border-color: var(--accent-deep);
    transform: translateX(2px);
}
.wd-visit::after {
    content: "↗";
    font-size: 1.05em;
    transition: transform var(--d-2);
}
.wd-visit:hover::after {
    transform: translate(2px, -2px);
}

/* Browser-chrome mockup frame. Subtle dots + an inline URL pill that
   shows the live domain. Makes a flat screenshot read as a real product
   shot rather than a cropped JPEG. */
.wd-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ink-95);
    box-shadow: 0 30px 60px -25px rgba(26, 27, 30, 0.28),
                0 12px 24px -10px rgba(26, 27, 30, 0.14),
                0 0 0 1px rgba(26, 27, 30, 0.06);
    transition: transform var(--d-2) var(--ease-out-quart),
                box-shadow var(--d-2);
}
.wd-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 70px -25px rgba(26, 27, 30, 0.34),
                0 16px 30px -10px rgba(26, 27, 30, 0.18),
                0 0 0 1px rgba(26, 27, 30, 0.08);
}
.wd-frame-chrome {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0.9rem;
    background: linear-gradient(180deg, #efebe1 0%, #e7e2d6 100%);
    border-bottom: 1px solid rgba(26, 27, 30, 0.08);
}
.wd-frame-dots {
    display: inline-flex;
    gap: 0.42rem;
}
.wd-frame-dots span {
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(26, 27, 30, 0.15);
}
.wd-frame-dots span:nth-child(1) { background: #e57367; }
.wd-frame-dots span:nth-child(2) { background: #e6c25b; }
.wd-frame-dots span:nth-child(3) { background: #6dba6a; }
.wd-frame-url {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.55);
    padding: 0.32rem 0.7rem;
    border-radius: 4px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wd-frame-url::before {
    content: "🔒 ";
    opacity: 0.55;
    font-size: 0.85em;
    margin-right: 0.15rem;
}
.wd-frame-shot {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1400 / 962;
    object-fit: cover;
    object-position: top;
    background: var(--ink-95);
}

/* WIP variant — no real screenshot; an editorial "preview coming soon"
   card inside the same browser-chrome frame. Static (no hover lift)
   since there's nothing to click through to yet. */
.wd-frame--wip {
    cursor: default;
}
.wd-frame--wip:hover {
    transform: none;
    box-shadow: 0 30px 60px -25px rgba(26, 27, 30, 0.28),
                0 12px 24px -10px rgba(26, 27, 30, 0.14),
                0 0 0 1px rgba(26, 27, 30, 0.06);
}
.wd-wip-card {
    aspect-ratio: 1400 / 962;
    background:
        radial-gradient(circle at 30% 20%, rgba(184, 149, 106, 0.08) 0%, transparent 55%),
        repeating-linear-gradient(45deg, transparent 0, transparent 22px, rgba(26, 27, 30, 0.025) 22px, rgba(26, 27, 30, 0.025) 23px),
        var(--ink-95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
    padding: 2rem;
}
.wd-wip-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    color: var(--accent-deep);
}
.wd-wip-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    letter-spacing: -0.015em;
    color: var(--text);
    line-height: 1.1;
}
.wd-wip-sub {
    font-family: var(--font-sans);
    font-size: var(--t-small);
    color: var(--text-muted);
}

@media (max-width: 880px) {
    .wd-feature-inner,
    .wd-feature--reverse .wd-feature-inner {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .wd-feature--reverse .wd-text  { order: 0; }
    .wd-feature--reverse .wd-frame { order: 0; }
}

/* Services grid — reuses .re-deliverables aesthetic but the cards
   lean a tiny bit denser since copy is shorter. */
.wd-services {
    background: var(--bg-muted);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding-bottom: clamp(4rem, 8vw, 7rem);
    margin-top: clamp(3rem, 6vw, 5rem);
}
.wd-services-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
}
.wd-services .wd-section-head {
    padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(2rem, 4vw, 3rem);
}
.wd-services-grid {
    list-style: none;
    margin: 0;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.2vw, 2.25rem);
}
.wd-service {
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-card);
    transition: transform var(--d-2) var(--ease-out-quart), box-shadow var(--d-2);
    display: flex;
    flex-direction: column;
}
.wd-service:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}
.wd-service .num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: var(--space-4);
}
.wd-service h4 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 var(--space-3);
}
.wd-service p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}
@media (max-width: 1024px) {
    .wd-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .wd-services-grid { grid-template-columns: 1fr; }
}

/* ─── PRICING ──────────────────────────────────────────────────────────
   Three-tier ladder ($500 / $750 / $1,000) + a row of three "extras"
   (hosting guarantee, same-day edits, hourly for bigger work). The
   center tier is featured: gold border + "Most common" badge.
   Designed to read like the cold-email offer ladder. */
.wd-pricing {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
    border-bottom: 1px solid var(--rule);
}
.wd-pricing-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.wd-pricing .wd-section-head {
    text-align: center;
    padding: 0 0 clamp(2rem, 4vw, 3rem);
}
.wd-pricing-lede {
    max-width: 580px;
    margin: var(--space-4) auto 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.wd-pricing-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2vw, 2rem);
    align-items: stretch;
}
.wd-tier {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-card);
    padding: clamp(1.75rem, 2.5vw, 2.5rem);
    display: flex;
    flex-direction: column;
    transition: transform var(--d-2) var(--ease-out-quart), box-shadow var(--d-2);
}
.wd-tier:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}
.wd-tier--featured {
    border: 2px solid var(--accent);
    box-shadow: 0 12px 32px -16px rgba(196, 165, 114, 0.35);
}
.wd-tier-badge {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}
.wd-tier-head {
    text-align: center;
    padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
    border-bottom: 1px solid var(--rule);
    margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}
.wd-tier-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.85rem;
}
.wd-tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
}
.wd-tier-currency {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}
.wd-tier-amount {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text);
}
.wd-tier-cadence {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}
.wd-tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}
.wd-tier-features li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text);
    border-bottom: 1px dashed var(--rule);
}
.wd-tier-features li:last-child { border-bottom: none; }
.wd-tier-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 0.65rem;
    height: 0.65rem;
    border-right: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg) translateY(-2px);
}
.wd-tier-fit {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    font-style: italic;
}

/* Per-project quote CTA — sits between the tier ladder and the
   retainer block. Reinforces that the prices above are guides, not
   menu items, and pushes the visitor to the contact form. */
.wd-quote-cta {
    margin-top: clamp(2rem, 3vw, 2.75rem);
    padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 2.5vw, 2.25rem);
    background: var(--bg-muted);
    border: 1px solid var(--rule);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    justify-content: space-between;
    flex-wrap: wrap;
}
.wd-quote-cta-text {
    flex: 1 1 320px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-muted);
}
.wd-quote-cta-text strong {
    color: var(--text);
    font-weight: 500;
}

/* Sub-header for the "After launch" retainer section. Smaller than
   the main h2 to read as a sibling of the tier ladder, not a sibling
   of the page-level section headers. */
.wd-section-head--sub {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-top: clamp(2rem, 3vw, 2.5rem);
    border-top: 1px solid var(--rule);
    text-align: left;
}
.wd-sub-h {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: var(--space-2) 0 0;
}
.wd-sub-h em {
    font-style: italic;
    color: var(--accent);
}

.wd-pricing-extras {
    margin-top: clamp(1rem, 2vw, 1.5rem);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2vw, 2rem);
    padding-top: 0;
}
.wd-pricing-extras--retainer .wd-extra {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-card);
    padding: clamp(1.25rem, 2vw, 1.75rem);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}
.wd-pricing-extras--retainer .wd-extra--featured {
    border: 2px solid var(--accent);
    box-shadow: 0 12px 32px -16px rgba(196, 165, 114, 0.35);
}
.wd-pricing-extras--retainer .wd-extra-num {
    display: inline-block;
    background: var(--bg-muted);
    color: var(--accent);
    border: 1px solid var(--rule);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.wd-pricing-extras--retainer h4 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.wd-extra-price {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.02em;
}
.wd-extra {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.wd-extra-num {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    line-height: 1.3;
    flex-shrink: 0;
}
.wd-extra h4 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-2);
    color: var(--text);
}
.wd-extra p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 900px) {
    .wd-pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .wd-pricing-extras { grid-template-columns: 1fr; }
}

/* FAQ — editorial accordions. Uses native <details>/<summary> so the
   answers stay in the DOM for SEO (Google reads collapsed content). */
.wd-faq {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}
.wd-faq-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
}
.wd-faq .wd-section-head {
    padding-top: clamp(3rem, 6vw, 5rem);
}
.wd-faq-list {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    border-top: 1px solid var(--rule);
}
.wd-faq-item {
    border-bottom: 1px solid var(--rule);
}
.wd-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text);
    transition: color var(--d-2);
}
.wd-faq-item summary::-webkit-details-marker { display: none; }
.wd-faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent-deep);
    transition: transform var(--d-3) var(--ease-out-quart);
}
.wd-faq-item[open] summary { color: var(--accent-deep); }
.wd-faq-item[open] summary::after {
    transform: rotate(45deg);
}
.wd-faq-item summary:hover { color: var(--accent-deep); }
.wd-faq-item p {
    margin: 0 0 1.5rem;
    padding-right: 3rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-soft);
    max-width: 60ch;
    animation: wd-faq-reveal var(--d-3) var(--ease-out-quart);
}
@keyframes wd-faq-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Soft CTA — re-uses .re-cta look but a touch warmer (slight tinted
   background so it visually closes the page). */
.wd-cta {
    padding: clamp(5rem, 10vw, 9rem) var(--gutter);
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(184, 149, 106, 0.08) 0%, transparent 55%),
        var(--bg);
}
.wd-cta-inner {
    max-width: 720px;
    margin: 0 auto;
}
.wd-cta h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: var(--space-4) 0 var(--space-5);
}
.wd-cta h2 em {
    font-style: italic;
    color: var(--accent-deep);
}
.wd-cta p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 56ch;
    margin: 0 auto var(--space-7);
}
.wd-cta-buttons {
    display: inline-flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

/* Tiny aside under the real-estate CTA pitching web design as a related
   service. Discreet — sits below the main button row, smaller type. */
.re-cta-aside {
    margin: 2rem auto 0;
    max-width: 56ch;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.re-cta-aside a {
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}
