/* ==========================================================================
   THE LIVING BLUEPRINT — Cornerstone GC
   Architectural drafting · surveying · construction sequencing
   ========================================================================== */

:root {
    --bp-ease: cubic-bezier(0.2, 0.65, 0.2, 1);
    --bp-ease-lock: cubic-bezier(0.33, 1, 0.38, 1);
    --bp-line: rgba(97, 123, 71, 0.35);
    --bp-line-faint: rgba(97, 123, 71, 0.14);
    --bp-line-active: var(--primary-orange);
    --bp-datum-offset: clamp(0.5rem, 2vw, 1.25rem);
}

/* --------------------------------------------------------------------------
   Datum line (body only, desktop)
   -------------------------------------------------------------------------- */
.body-wallpaper .blueprint-datum {
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(var(--bp-datum-offset), calc(50% - var(--container-max) / 2 - 3.5rem));
    width: 28px;
    z-index: 2;
}

.blueprint-datum {
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(var(--bp-datum-offset), calc(50% - var(--container-max) / 2 - 3.5rem));
    width: 28px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 600ms var(--bp-ease);
}

html.has-blueprint-motion .blueprint-datum {
    opacity: 1;
}

.blueprint-datum__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.datum-track {
    stroke: var(--bp-line-faint);
    stroke-width: 1;
}

.datum-progress {
    stroke: var(--bp-line-active);
    stroke-width: 1;
    stroke-linecap: square;
    transition: stroke-dashoffset 80ms linear;
}

.datum-node {
    fill: var(--bg-secondary);
    stroke: var(--bp-line);
    stroke-width: 1;
    opacity: 0.45;
}

.datum-node.is-reached {
    stroke: var(--bp-line);
}

.datum-node.is-locked {
    stroke: var(--bp-line-active);
    opacity: 0.85;
}

.datum-tick {
    stroke: var(--bp-line-faint);
    stroke-width: 1;
}

.datum-label {
    font-family: 'Lato', sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.14em;
    fill: var(--dark-green);
    opacity: 0.55;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .blueprint-datum {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Section branch lines (datum → heading)
   -------------------------------------------------------------------------- */
.blueprint-section {
    position: relative;
}

.section-container > .blueprint-branch {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--branch-y, 2rem);
    width: var(--branch-w, 0px);
    height: 1px;
    background: var(--bp-line-faint);
    transform-origin: left center;
    transform: scaleX(0);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.blueprint-branch {
    position: absolute;
    left: 0;
    top: var(--branch-y, 2rem);
    width: var(--branch-w, 0px);
    height: 1px;
    background: var(--bp-line-faint);
    transform-origin: left center;
    transform: scaleX(0);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.blueprint-branch::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 1px;
    height: 7px;
    background: var(--bp-line-faint);
    opacity: 0;
    transition: opacity 300ms var(--bp-ease) 400ms;
}

.blueprint-section.bp-branch-drawn .blueprint-branch {
    opacity: 1;
    transform: scaleX(1);
    transition: transform 700ms var(--bp-ease), opacity 300ms ease;
}

.blueprint-section.bp-branch-drawn .blueprint-branch::after {
    opacity: 1;
}

.blueprint-section.bp-branch-locked .blueprint-branch {
    opacity: 0.35;
}

.blueprint-section[data-branch-style="elbow"] .blueprint-branch {
    height: auto;
    background: none;
    border: none;
}

.blueprint-section[data-branch-style="elbow"] .blueprint-branch::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--branch-w, 80px);
    height: 1px;
    background: var(--bp-line-faint);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 600ms var(--bp-ease);
}

.blueprint-section[data-branch-style="elbow"] .blueprint-branch::after {
    left: var(--branch-w, 80px);
    right: auto;
    top: 0;
    height: var(--branch-drop, 12px);
    width: 1px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 500ms var(--bp-ease) 500ms;
}

.blueprint-section.bp-branch-drawn[data-branch-style="elbow"] .blueprint-branch::before {
    transform: scaleX(1);
}

.blueprint-section.bp-branch-drawn[data-branch-style="elbow"] .blueprint-branch::after {
    transform: scaleY(1);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Section connectors (continuous drawing)
   -------------------------------------------------------------------------- */
.blueprint-connector {
    position: relative;
    height: 0;
    margin-block: 0;
    margin-inline: auto;
    width: min(var(--container-max), calc(100% - 2rem));
    pointer-events: none;
    z-index: 2;
    opacity: 0.25;
    overflow: visible;
}

.blueprint-connector::before {
    content: '';
    position: absolute;
    left: 12%;
    top: 0;
    width: 1px;
    height: clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(to bottom, transparent, var(--bp-line-faint), transparent);
    transform: translateY(-50%);
}

.blueprint-connector::after {
    content: '';
    position: absolute;
    left: 12%;
    top: 0;
    width: 18px;
    height: 1px;
    background: var(--bp-line-faint);
    transform: translateY(-50%);
}

.blueprint-connector--arc::before {
    width: 24px;
    height: 24px;
    border: 1px solid var(--bp-line-faint);
    border-right: none;
    border-bottom: none;
    border-radius: 100% 0 0 0;
    background: none;
    left: 10%;
}

/* --------------------------------------------------------------------------
   HERO — Blueprint becomes building
   -------------------------------------------------------------------------- */
.blueprint-hero .hero-bg-layers {
    position: absolute;
    inset: 0;
}

.blueprint-hero .hero-bg-image--finished,
.blueprint-hero .hero-bg-image--plan {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.12);
    animation: hero-pan 52s ease-in-out infinite;
    will-change: transform;
}

/* reveal 0 = full plan overlay · reveal 1 = plan clipped away, finished photo visible */
.blueprint-hero .hero-bg-image--plan {
    filter: grayscale(0.85) contrast(1.15) brightness(0.92);
    z-index: 2;
    clip-path: inset(0 calc(var(--hero-reveal, 0) * 100%) 0 0);
}

html:not(.has-blueprint-motion) .hero-bg-image--plan,
html:not(.has-blueprint-motion) .hero-blueprint-grid,
html:not(.has-blueprint-motion) .hero-reveal-scanner {
    display: none;
}

.blueprint-hero .hero-blueprint-grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: calc(1 - var(--hero-reveal, 0));
    background-image:
        linear-gradient(rgba(97, 123, 71, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(97, 123, 71, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to right, black calc((1 - var(--hero-reveal, 0)) * 100%), transparent calc((1 - var(--hero-reveal, 0)) * 100% + 2%));
}

.blueprint-hero .hero-reveal-scanner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--hero-reveal, 0) * 100%);
    width: 1px;
    background: rgba(248, 125, 8, 0.75);
    z-index: 4;
    pointer-events: none;
    opacity: var(--hero-scan-visible, 0);
    transition: opacity 200ms ease;
}

.blueprint-hero .hero-reveal-scanner::before,
.blueprint-hero .hero-reveal-scanner::after {
    content: '';
    position: absolute;
    left: -3px;
    width: 7px;
    height: 1px;
    background: var(--primary-orange);
}

.blueprint-hero .hero-reveal-scanner::before { top: 8%; }
.blueprint-hero .hero-reveal-scanner::after { bottom: 8%; }

.blueprint-hero .hero-reveal-scanner-mark {
    position: absolute;
    top: 50%;
    left: -5px;
    width: 10px;
    height: 10px;
    border: 1px solid var(--primary-orange);
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(20, 24, 22, 0.5);
}

/* Hero frame — four edges construct */
.blueprint-frame {
    border: none !important;
}

.blueprint-frame::before {
    display: none;
}

.bf-edge {
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    transform-origin: center;
}

.bf-edge--top,
.bf-edge--bottom {
    height: 1px;
    left: 0;
    right: 0;
    transform: scaleX(0);
}

.bf-edge--top { top: 0; transform-origin: left center; }
.bf-edge--bottom { bottom: 0; transform-origin: right center; }

.bf-edge--left,
.bf-edge--right {
    width: 1px;
    top: 0;
    bottom: 0;
    transform: scaleY(0);
}

.bf-edge--left { left: 0; transform-origin: top center; }
.bf-edge--right { right: 0; transform-origin: bottom center; }

.bf-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 3px;
    background: var(--brand-accent);
    transform: scaleX(0);
    transform-origin: left center;
}

html.bp-hero-drawing .bf-edge--top {
    animation: bf-draw-h 280ms var(--bp-ease) 100ms forwards;
}

html.bp-hero-drawing .bf-edge--right {
    animation: bf-draw-v 260ms var(--bp-ease) 340ms forwards;
}

html.bp-hero-drawing .bf-edge--bottom {
    animation: bf-draw-h 280ms var(--bp-ease) 560ms forwards;
}

html.bp-hero-drawing .bf-edge--left {
    animation: bf-draw-v 260ms var(--bp-ease) 780ms forwards;
}

html.bp-hero-drawing .bf-accent {
    animation: bf-draw-h 320ms var(--bp-ease) 980ms forwards;
}

@keyframes bf-draw-h {
    to { transform: scaleX(1); }
}

@keyframes bf-draw-v {
    to { transform: scaleY(1); }
}

/* Hero content sequence */
.blueprint-hero .hero-title,
.blueprint-hero .hero-tagline,
.blueprint-hero .hero-accent,
.blueprint-hero .cta-button {
    opacity: 0;
}

html.bp-hero-headline .blueprint-hero .hero-title,
html.bp-hero-headline .blueprint-hero .hero-accent {
    opacity: 1;
    transition: opacity 550ms var(--bp-ease);
}

html.bp-hero-tagline .blueprint-hero .hero-tagline {
    opacity: 1;
    transition: opacity 500ms var(--bp-ease);
}

html.bp-hero-cta .blueprint-hero .cta-button {
    opacity: 1;
    transition: opacity 450ms var(--bp-ease);
}

html.bp-hero-resting .blueprint-hero .hero-title,
html.bp-hero-resting .blueprint-hero .hero-tagline,
html.bp-hero-resting .blueprint-hero .hero-accent,
html.bp-hero-resting .blueprint-hero .cta-button {
    opacity: 1;
}

/* Restore standard Cornerstone orange once the hero is full color */
html.bp-hero-resting .blueprint-hero .cta-button {
    background-color: var(--primary-orange) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(248, 125, 8, 0.28) !important;
    transition:
        background-color 500ms var(--bp-ease),
        box-shadow 500ms var(--bp-ease),
        border-color 500ms var(--bp-ease);
}

html.bp-hero-resting .blueprint-hero .cta-button::before,
html.bp-hero-resting .blueprint-hero .cta-button::after {
    display: none;
}

html.bp-hero-resting .blueprint-hero .cta-button:hover {
    background-color: #e67300 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(248, 125, 8, 0.34) !important;
}

html.bp-hero-resting .hero-bg-image--plan,
html.bp-hero-resting .hero-blueprint-grid,
html.bp-hero-resting .hero-reveal-scanner {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header load + nav drafting underline
   -------------------------------------------------------------------------- */
html.has-blueprint-motion .site-header {
    opacity: 0;
    transform: translateY(-6px);
    animation: bp-header-settle 400ms var(--bp-ease) forwards;
    overflow: visible;
}

@keyframes bp-header-settle {
    to { opacity: 1; transform: none; }
}

.nav-links a {
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.35rem;
    width: 4px;
    height: 4px;
    border: 1px solid var(--dark-green);
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
    transition: opacity 200ms ease, transform 200ms ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 1px;
    background: var(--primary-orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 350ms var(--bp-ease);
}

.nav-links a:hover::before {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.hamburger span {
    transition:
        transform 320ms var(--bp-ease),
        opacity 220ms ease,
        width 220ms var(--bp-ease);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 20px;
    transition-delay: 40ms;
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 20px;
    transition-delay: 40ms;
}

/* --------------------------------------------------------------------------
   CTA — material fill, not glow
   -------------------------------------------------------------------------- */
.cta-button {
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    z-index: 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform 420ms var(--bp-ease);
    z-index: -1;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid transparent;
    transition: inset 220ms var(--bp-ease), border-color 220ms ease;
    pointer-events: none;
}

.cta-button:hover::before {
    transform: translateX(0);
}

.cta-button:hover::after {
    inset: 0;
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: none !important;
}

/* --------------------------------------------------------------------------
   Mission — specification drawing
   -------------------------------------------------------------------------- */
.mission-section .section-container,
.why-section .section-container,
.showcase-section .section-container,
.credibility-section .section-container {
    position: relative;
}

.mission-blueprint-guides {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.mission-section.bp-spec-active .mission-blueprint-guides {
    opacity: 1;
    transition: opacity 400ms ease;
}

.mission-blueprint-guides::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 0;
    background: var(--bp-line-faint);
    transition: height 600ms var(--bp-ease);
}

.mission-blueprint-guides::after {
    content: '';
    position: absolute;
    left: 0;
    top: 2.5rem;
    height: 1px;
    width: 0;
    background: var(--bp-line-faint);
    transition: width 700ms var(--bp-ease) 200ms;
}

.mission-section.bp-spec-active .mission-blueprint-guides::before {
    height: 100%;
}

.mission-section.bp-spec-active .mission-blueprint-guides::after {
    width: min(48%, 280px);
}

.mission-section .section-heading,
.mission-section .mission-statement,
.why-section .section-heading,
.mission-features li,
.mission-features li .feature-number,
.mission-features li .feature-content {
    opacity: 1;
}

.mission-statement {
    clip-path: inset(0 0 0 0);
}

html.has-blueprint-motion:not(.bp-reduced) .mission-section.bp-spec-statement .mission-statement {
    animation: bp-statement-reveal 700ms var(--bp-ease) both;
}

@keyframes bp-statement-reveal {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

html.has-blueprint-motion:not(.bp-reduced) .why-section.bp-spec-why .section-heading::after {
    transform: scaleX(1);
}

.mission-features li .feature-line {
    display: block;
    grid-column: 2;
    grid-row: 1;
    height: 1px;
    background: var(--bp-line);
    margin-bottom: 0.35rem;
    transform: scaleX(0);
    transform-origin: left center;
    max-width: var(--spec-line-w, 100%);
}

.mission-features li.bp-spec-line .feature-number {
    animation: bp-number-emerge 400ms var(--bp-ease) both;
}

.mission-features li.bp-spec-line .feature-line {
    transform: scaleX(1);
    transition: transform 500ms var(--bp-ease) 80ms;
}

.mission-features li.bp-spec-line .feature-content {
    animation: bp-content-emerge 450ms var(--bp-ease) 160ms both;
}

@keyframes bp-number-emerge {
    from { opacity: 0.35; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@keyframes bp-content-emerge {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.mission-features li {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
}

.mission-features li .feature-number {
    grid-row: 1 / 3;
}

.mission-features li .feature-content {
    grid-column: 2;
    grid-row: 2;
}

.why-section .mission-features li {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
}

.why-section .mission-features li .feature-number {
    grid-column: 1;
    grid-row: 1;
}

.why-section .mission-features li .feature-line {
    grid-column: 1;
    grid-row: 2;
    max-width: 2.75rem;
    margin-bottom: 0.75rem;
}

.why-section .mission-features li .feature-content {
    grid-column: 1;
    grid-row: 3;
}

/* --------------------------------------------------------------------------
   Contact — construct cards
   -------------------------------------------------------------------------- */
.contact-construct {
    position: relative;
    z-index: 1;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
}

.construct-edge {
    display: none;
}

.contact-construct .contact-photo-wrap,
.contact-construct .contact-info {
    z-index: 2;
}

.construct-edge--t,
.construct-edge--b {
    height: 1px;
    left: 0;
    right: 0;
    transform: scaleX(0);
}

.construct-edge--l,
.construct-edge--r {
    width: 1px;
    top: 0;
    bottom: 0;
    transform: scaleY(0);
}

.contact-construct[data-construct="ltr"] .construct-edge--t { top: 0; transform-origin: left; }
.contact-construct[data-construct="ltr"] .construct-edge--r { right: 0; transform-origin: top; }
.contact-construct[data-construct="ltr"] .construct-edge--b { bottom: 0; transform-origin: right; }
.contact-construct[data-construct="ltr"] .construct-edge--l { left: 0; transform-origin: bottom; }

.contact-construct[data-construct="rtl"] .construct-edge--t { top: 0; transform-origin: right; }
.contact-construct[data-construct="rtl"] .construct-edge--l { left: 0; transform-origin: top; }
.contact-construct[data-construct="rtl"] .construct-edge--b { bottom: 0; transform-origin: left; }
.contact-construct[data-construct="rtl"] .construct-edge--r { right: 0; transform-origin: bottom; }

.contact-construct.bp-building .construct-edge--t {
    animation: bf-draw-h 140ms var(--bp-ease) forwards;
}

.contact-construct.bp-building .construct-edge--r,
.contact-construct.bp-building .construct-edge--l {
    animation: bf-draw-v 150ms var(--bp-ease) 100ms forwards;
}

.contact-construct .contact-photo-wrap {
    clip-path: none;
}

.contact-construct.bp-building .construct-edge--b {
    animation: bf-draw-h 140ms var(--bp-ease) 280ms forwards;
}

.contact-construct.bp-built .construct-edge {
    transform: none;
}

.contact-construct .contact-info {
    opacity: 1;
}

.contact-construct:not(.bp-built) .contact-info {
    opacity: 0.85;
}

.contact-construct.bp-built .contact-info {
    opacity: 1;
    transition: opacity 250ms var(--bp-ease);
}

/* Portrait inspection mark */
.contact-photo-wrap {
    position: relative;
}

.inspect-mark {
    position: absolute;
    inset: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 250ms ease;
    z-index: 2;
}

.inspect-mark::before,
.inspect-mark::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--primary-orange);
    border-style: solid;
    opacity: 0.7;
}

.inspect-mark::before {
    top: 0;
    left: 0;
    border-width: 1px 0 0 1px;
}

.inspect-mark::after {
    bottom: 0;
    right: 0;
    border-width: 0 1px 1px 0;
}

.inspect-scan {
    position: absolute;
    top: 20%;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-orange);
    opacity: 0.6;
    transition: width 400ms var(--bp-ease);
}

.contact-photo-wrap.is-inspecting .inspect-mark {
    opacity: 1;
}

.contact-photo-wrap.is-inspecting .inspect-scan {
    width: 28px;
}

.contact-photo-wrap.is-inspecting .contact-photo {
    transform: scale(1.01);
}

/* Measurement underline on contact links */
.bp-measure-link {
    position: relative;
    display: inline-block;
}

.bp-measure-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: var(--primary-orange);
    transition: width 380ms var(--bp-ease);
}

.bp-measure-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 1px;
    height: 5px;
    background: var(--primary-orange);
    opacity: 0;
    transition: opacity 200ms ease 300ms, left 380ms var(--bp-ease);
}

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

.bp-measure-link:hover::before {
    opacity: 0.8;
    left: 100%;
}

/* --------------------------------------------------------------------------
   About / Legal cross-section
   -------------------------------------------------------------------------- */
.blueprint-cross-section {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blueprint-cross-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: clamp(2rem, 8%, 3.25rem);
    height: 1px;
    width: 0;
    background: var(--bp-line-faint);
    transition: width 900ms var(--bp-ease);
}

.blueprint-cross-section::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1px;
    height: 0;
    background: var(--bp-line-faint);
    transform: translate(-50%, -50%);
    transition: height 500ms var(--bp-ease) 700ms;
}

.blueprint-cross-section::before,
.blueprint-cross-section::after {
    opacity: 0.45;
}

.credibility-section.bp-cross-active .blueprint-cross-section::before {
    width: 100%;
}

.credibility-section.bp-cross-active .blueprint-cross-section::after {
    height: clamp(80px, 12vw, 140px);
}

.about-services-grid section#about,
.about-services-grid section#services {
    opacity: 1;
    clip-path: none;
    transform: none;
}


.license-seal-wrapper {
    position: relative;
}

.license-seal {
    clip-path: none;
}

/* --------------------------------------------------------------------------
   Showcase — layout guides + plan/finish cards
   -------------------------------------------------------------------------- */
.showcase-layout-guides {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.showcase-section.bp-grid-draw .showcase-layout-guides {
    opacity: 0.35;
    transition: opacity 500ms ease;
}

.showcase-section.bp-grid-built .showcase-layout-guides {
    opacity: 0.08;
    transition: opacity 800ms ease 600ms;
}

.showcase-layout-guides::before,
.showcase-layout-guides::after {
    content: '';
    position: absolute;
    background: var(--bp-line-faint);
}

.showcase-layout-guides::before {
    left: 10%;
    right: 10%;
    top: 35%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 600ms var(--bp-ease);
}

.showcase-layout-guides::after {
    top: 15%;
    bottom: 15%;
    left: 50%;
    width: 1px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 700ms var(--bp-ease) 200ms;
}

.showcase-section.bp-grid-draw .showcase-layout-guides::before,
.showcase-section.bp-grid-draw .showcase-layout-guides::after {
    transform: none;
}

.blueprint-project-card {
    opacity: 1;
}

html.has-blueprint-motion:not(.bp-reduced) .blueprint-project-card {
    opacity: 0;
}

html.has-blueprint-motion:not(.bp-reduced) .blueprint-project-card.bp-card-frame {
    opacity: 1;
}

html.has-blueprint-motion:not(.bp-reduced) .blueprint-project-card.bp-card-frame .project-card-frame {
    opacity: 1;
}

.project-card-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.project-card-frame {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--border-strong);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.blueprint-project-card .project-card-thumbnail--finished,
.blueprint-project-card .project-card-thumbnail--plan {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-thumbnail--plan {
    filter: grayscale(0.9) contrast(1.2) brightness(0.95);
    z-index: 1;
    clip-path: inset(0 calc((1 - var(--plan-reveal, 0)) * 100%) 0 0);
}

.project-card-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: calc(0.35 * var(--plan-reveal, 0));
    background-image:
        linear-gradient(rgba(97, 123, 71, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(97, 123, 71, 0.12) 1px, transparent 1px);
    background-size: 16px 16px;
}

.project-card-scan {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--plan-reveal, 0) * 100%);
    width: 1px;
    background: rgba(248, 125, 8, 0.65);
    z-index: 3;
    pointer-events: none;
    opacity: var(--plan-scan-on, 0);
}

.project-card-scan::before,
.project-card-scan::after {
    content: '';
    position: absolute;
    left: -2px;
    width: 5px;
    height: 1px;
    background: var(--primary-orange);
}

.project-card-scan::before { top: 12%; }
.project-card-scan::after { bottom: 12%; }

.blueprint-project-card.bp-card-photo .project-card-thumbnail--finished,
.blueprint-project-card.bp-card-photo .project-card-thumbnail--plan {
    opacity: 1;
}

.blueprint-project-card.bp-card-photo {
    opacity: 1;
}

.blueprint-project-card.bp-card-title .project-card-overlay {
    opacity: 1;
    transition: opacity 400ms ease;
}

html.has-blueprint-motion:not(.bp-reduced) .blueprint-project-card .project-card-overlay {
    opacity: 0;
}

html.has-blueprint-motion:not(.bp-reduced) .blueprint-project-card.bp-card-title .project-card-overlay {
    opacity: 1;
}

/* Mobile showcase one-time reveal */
@media (max-width: 768px), (pointer: coarse) {
    .project-card-scan,
    .project-card-grid-overlay {
        display: none;
    }

    .showcase-section.bp-grid-built .blueprint-project-card {
        animation: bp-mobile-card-in 600ms var(--bp-ease) both;
        animation-delay: calc(var(--card-i, 0) * 90ms);
    }
}

@keyframes bp-mobile-card-in {
    from {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* --------------------------------------------------------------------------
   Section headings — draw underline (shared)
   -------------------------------------------------------------------------- */
.blueprint-section .section-heading::after {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 650ms var(--bp-ease) 200ms;
}

.blueprint-section.bp-heading-drawn .section-heading::after,
.blueprint-section.bp-spec-heading .section-heading::after {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Registration marks (sparse)
   -------------------------------------------------------------------------- */
.bp-registration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    font-size: 10px;
    color: var(--bp-line);
    line-height: 1;
    transition: opacity 600ms var(--bp-ease), transform 400ms var(--bp-ease-lock);
}

.bp-registration.is-placed {
    opacity: 0.35;
}

.bp-registration.is-locked {
    opacity: 0.5;
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Section lock pulse
   -------------------------------------------------------------------------- */
.blueprint-section.bp-locking .blueprint-branch::after {
    animation: bp-lock-tick 220ms var(--bp-ease-lock);
}

@keyframes bp-lock-tick {
    50% { transform: scaleY(1.3); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Hide legacy scroll progress
   -------------------------------------------------------------------------- */
.scroll-progress {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html.bp-reduced .hero-bg-image--plan,
    html.bp-reduced .hero-blueprint-grid,
    html.bp-reduced .hero-reveal-scanner {
        display: none !important;
    }

    html.bp-reduced .mission-statement {
        clip-path: none !important;
    }

    html.bp-reduced .license-seal {
        clip-path: none !important;
    }
}

html.bp-reduced.has-blueprint-motion * {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
}

html.bp-reduced .mission-section .section-heading,
html.bp-reduced .mission-section .mission-statement,
html.bp-reduced .why-section .section-heading,
html.bp-reduced .mission-features li .feature-number,
html.bp-reduced .mission-features li .feature-content,
html.bp-reduced .credibility-section section#about,
html.bp-reduced .credibility-section section#services,
html.bp-reduced .blueprint-project-card,
html.bp-reduced .blueprint-project-card .project-card-overlay,
html.bp-reduced .contact-construct .contact-info {
    opacity: 1 !important;
    clip-path: none !important;
}

html.bp-reduced .contact-construct {
    background: transparent !important;
    box-shadow: none !important;
}
