/* --- Valley layer (vibe pass) ---------------------------------------------
   The place the name comes from, drawn quietly: the surveyed section grid of
   the Red River Valley and the river that crosses it on its own terms.
   Everything here is decoration. It carries no content, sits behind or beside
   text (never under body copy), is hidden from assistive technology in the
   markup, and can be deleted as one block without changing layout or words.
   Art files: includes/art/*.svg (inlined, so they follow the theme tokens) and
   assets/art/*.svg (used from this stylesheet). */
:root {
    --art-line: #bcc4e2;
    --art-line-strong: #a7b0d2;
    --art-tint: #eef0fc;
    --art-tint-strong: #e6eafb;
    --art-river: #8797ea;
    --art-tree: #b3bde4;
    --art-soil: #d8ccbb;
    --art-sheet: rgba(48, 74, 217, .07);
}
[data-theme="dark"] {
    --art-line: #333a55;
    --art-line-strong: #4a5478;
    --art-tint: #1c2134;
    --art-tint-strong: #222944;
    --art-river: #4c5fc2;
    --art-tree: #46517a;
    --art-soil: #4d453b;
    --art-sheet: rgba(168, 182, 255, .06);
}

/* Type: even rags on headings, no stranded last word in paragraphs. */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.studio-number, .card-price, .studio-service-rate strong { font-variant-numeric: tabular-nums; }
::selection { background: #304ad9; color: #fff; }

/* Hero: the pale half-round becomes a plat sheet that fades out on every
   side, so it has no edge to clip on a wide monitor. */
.studio-showcase::before { content: none; }
.valley-plat {
    position: absolute;
    z-index: -1;
    top: -5rem;
    left: -3rem;
    width: calc(100% + 3rem + clamp(1.25rem, 3vw, 2.5rem));
    height: calc(100% + 9rem);
    pointer-events: none;
}
.vp-line, .vp-road, .vp-river, .vp-bank, .vp-scar, .vp-corner, .vp-row { fill: none; stroke-linecap: round; }
.vp-line { stroke: var(--art-line); stroke-width: 1; }
.vp-dash { stroke-dasharray: 2 6; }
.vp-row { stroke: var(--art-soil); stroke-width: .9; }
.vp-field { fill: var(--art-tint); }
.vp-road { stroke: var(--art-line-strong); stroke-width: 2; }
.vp-bank { stroke: var(--art-tint-strong); stroke-width: 20; }
.vp-river { stroke: var(--art-river); stroke-width: 6; }
.vp-oxbow { stroke-width: 3.5; }
.vp-scar { stroke: var(--art-line-strong); stroke-width: 1.3; stroke-dasharray: 1 5; }
.vp-tree { fill: var(--art-tree); }
.vp-bldg { fill: var(--art-line-strong); }
.vp-corner { stroke: var(--art-line-strong); stroke-width: 1.2; }
@media (max-width: 800px) {
    .valley-plat { top: -2rem; left: -2rem; width: calc(100% + 4rem); height: calc(100% + 3rem); }
}

/* Screenshot panels sit on a faint ruled sheet. Longhands only, so the tint
   each panel already has stays in charge of the colour. */
html[data-theme] :is(.studio-work-image, .studio-case-image) {
    background-image: linear-gradient(var(--art-sheet) 1px, transparent 1px), linear-gradient(90deg, var(--art-sheet) 1px, transparent 1px);
    background-size: 44px 44px;
    background-position: center;
}

/* Spot drawings for the three services: one pen weight, one accent. */
.valley-spot {
    display: block;
    width: 58px;
    height: 58px;
    fill: none;
    stroke: var(--color-text);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.valley-spot .vs-accent { stroke: var(--color-primary); }
.valley-spot--lead { width: 56px; height: 56px; margin: 0 0 var(--space-sm) -3px; }
.studio-mark { display: grid; gap: .7rem; justify-items: start; align-content: start; }
.studio-mark .valley-spot { margin-left: -3px; }
.studio-service-row--art { grid-template-columns: 4.75rem 1fr 1.65fr .75fr; }
@media (max-width: 1000px) {
    .studio-service-row--art { grid-template-columns: 3.4rem 1fr 1.7fr; }
    .studio-mark .valley-spot { width: 44px; height: 44px; }
}
@media (max-width: 540px) {
    .studio-service-row--art { grid-template-columns: 2.6rem 1fr; }
    .studio-mark .valley-spot { width: 36px; height: 36px; stroke-width: 1.9; }
}

/* The four steps read as stops along one road. */
.studio-process li { position: relative; }
.studio-process li::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    box-sizing: border-box;
    border: 1.5px solid var(--color-primary);
    border-radius: 50%;
    background: var(--color-bg);
}
@media (min-width: 1001px) {
    .studio-process li:not(:last-child)::after {
        content: '';
        position: absolute;
        top: -1px;
        left: 100%;
        width: 2rem;
        border-top: 1px dashed var(--art-line-strong);
    }
}

/* The valley, beside the paragraph that names its towns. */
.valley-map { display: block; width: 100%; max-width: 430px; height: auto; margin-top: var(--space-xl); }
.vm-grid, .vm-border, .vm-road, .vm-trib, .vm-river, .vm-north path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vm-grid { stroke: var(--art-line); stroke-width: .7; }
.vm-border { stroke: var(--art-line-strong); stroke-width: 1; stroke-dasharray: 9 4 1.5 4; }
.vm-road { stroke: var(--art-line-strong); stroke-width: 1.2; stroke-dasharray: 5 3.5; }
.vm-lake { fill: var(--art-river); opacity: .55; }
.vm-trib { stroke: var(--art-river); stroke-width: 1.1; }
.vm-river { stroke: var(--color-primary); stroke-width: 2.4; }
.vm-river-2 { stroke-width: 1.7; }
.vm-town { fill: var(--color-surface-2); stroke: var(--color-text); stroke-width: 1.5; }
.vm-town-main { fill: var(--color-text); }
.vm-label {
    font: 600 12px var(--font-family);
    letter-spacing: .01em;
    fill: var(--color-muted);
    stroke: var(--color-surface-2);
    stroke-width: 3.5px;
    stroke-linejoin: round;
    paint-order: stroke;
}
.vm-label-main { fill: var(--color-text); font-size: 13px; }
.vm-north path { stroke: var(--color-muted); stroke-width: 1.2; }
@media (max-width: 800px) { .valley-map { max-width: 360px; margin-top: var(--space-md); } }

/* Inner pages: a corner of the same plat in the empty right side of the
   heading band. One colour through a mask, so it follows the theme. Only
   where there is room for it beside the text. */
@media (min-width: 1200px) {
    .studio-page-intro > .container:not(.studio-about-intro) { position: relative; }
    .studio-page-intro > .container:not(.studio-about-intro)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: clamp(1.25rem, 3vw, 2.5rem);
        width: 370px;
        height: 220px;
        transform: translateY(-50%);
        background: var(--color-primary);
        opacity: .5;
        -webkit-mask: url(../assets/art/plat-corner.svg) center / contain no-repeat;
        mask: url(../assets/art/plat-corner.svg) center / contain no-repeat;
        pointer-events: none;
    }
}

/* Footer: the page ends at a horizon. The footer is the ground; a small
   skyline stands on its top edge in the gap the footer already leaves above
   itself. The drawing has a fixed width and empty ends, and the ground line
   is the footer's own edge, so nothing clips or repeats at any width. */
footer { position: relative; }
footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 1px);
    height: 56px;
    background: url(../assets/art/footer-horizon-sm.svg) left clamp(1.25rem, 3vw, 2.5rem) bottom / 330px 56px no-repeat;
    pointer-events: none;
}
@media (min-width: 900px) {
    footer::before {
        height: 64px;
        background: url(../assets/art/footer-horizon.svg) center bottom / min(1240px, 100% - 3rem) auto no-repeat;
    }
}
.footer-bottom { border-top-color: rgba(255, 255, 255, .16); }
@media print { footer::before, .valley-plat, .valley-map { display: none; } }

/* Small movements that answer the pointer. Arrows are aria-hidden already. */
.studio-text-link > span[aria-hidden],
.btn > span[aria-hidden],
.studio-work-caption > span[aria-hidden],
.studio-product-links > a > span[aria-hidden] { display: inline-block; transition: transform .18s ease; }
.studio-text-link:hover > span[aria-hidden],
.btn:hover > span[aria-hidden],
.studio-work-item:hover .studio-work-caption > span[aria-hidden],
.studio-product-links > a:hover > span[aria-hidden] { transform: translate(2px, -2px); }
.studio-text-link[href^="#"]:hover > span[aria-hidden] { transform: translateY(3px); }
.studio-work-item:focus-visible, .studio-site:focus-visible, .studio-case-image:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) {
    .studio-text-link > span[aria-hidden], .btn > span[aria-hidden], .studio-work-caption > span[aria-hidden],
    .studio-product-links > a > span[aria-hidden] { transition: none; transform: none !important; }
}
