/* A calm studio wall inspired by the supplied light-and-shadow reference. */
.ivory-hero { background:#132322; }
.ivory-hero-bg {
    background:#dfe3e4 url("images/video-poster.jpg") center center / cover no-repeat;
    transform:none;
    animation:none;
}
.ivory-hero-video {
    position:absolute;
    inset:0;
    z-index:1;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    background:#132322;
}
.ivory-hero-overlay {
    z-index:2;
    background:linear-gradient(90deg,rgba(6,18,18,.68) 0%,rgba(6,18,18,.42) 46%,rgba(6,18,18,.16) 100%);
}
.home-page .ivory-nav-links a,
.home-page .ivory-logo { color:#f7f2e8 !important; }
.home-page .ivory-menu-btn span { background:#f7f2e8 !important; }
.home-page .logo-mark img { filter:brightness(0) invert(1); }
.hero-drawing { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.house-sketch {
    position:absolute;
    right:-1%;
    top:auto;
    bottom:8.5vh;
    width:clamp(650px,62vw,820px);
    height:auto;
    aspect-ratio:820 / 640;
    color:#393a32;
    overflow:visible;
    transform:translate(10%,-15%) scale(1.04);
    transform-origin:center bottom;
}
.sketch-guides { opacity: .14; }
.sketch-detail { opacity: .45; stroke-width: 1; }
.hero-drawing:not(.is-ready) .drawing-strokes { visibility: hidden; }
.hero-drawing.is-animating [data-draw] { stroke-dasharray: var(--stroke-length); stroke-dashoffset: var(--stroke-length); }
.drawing-pencil { filter: drop-shadow(1px 2px 1px #0002); }
.ivory-hero-content { max-width: none; width: 53%; padding-right: 0; }
.ivory-title { font-size: clamp(48px, 7vw, 106px); min-height: 1.9em; }
.ivory-subtitle { max-width: 380px; }
@media (min-width: 1500px) {
    .ivory-buttons { gap:clamp(18px,1.1vw,26px); }
    .ivory-btn {
        min-height:58px;
        padding:clamp(18px,1.15vw,23px) clamp(28px,1.75vw,36px);
        gap:clamp(24px,1.5vw,32px);
        font-size:clamp(10px,.65vw,12px);
    }
    .ivory-btn-primary span { font-size:clamp(18px,1.1vw,22px); }
}
@media (min-width: 901px) and (max-width: 1499px) {
}
/* Windows laptops commonly expose a wide but short browser viewport because of
   display scaling and browser chrome. Size the drawing from viewport height in
   that case so Chromium does not push it into the navigation or clip its edge. */
@media (min-width: 768px) and (max-height: 800px) {
    .house-sketch {
        right:1%;
        bottom:1.5vh;
        width:min(52vw, calc(72vh * 1.28125));
        transform:translateX(3%);
        transform-origin:center bottom;
    }
}
@media (max-width: 900px) {
    .ivory-hero-content { width: 58%; padding-left: 7%; }
    .house-sketch { right:-8%;width:68%; }
    .ivory-buttons { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .ivory-hero { min-height: 900px; min-height: max(900px, 100svh); }
    .ivory-hero-content { min-height: 0; width: 100%; padding: 140px 7% 0; justify-content: flex-start; }
    .ivory-title { font-size: clamp(46px, 11vw, 64px); }
    .ivory-subtitle { margin-top: 22px; max-width: 310px; }
    .ivory-buttons { margin-top: 26px; gap: 10px; }
    .ivory-btn { padding: 13px 15px; }
    .house-sketch { top:520px;bottom:auto;right:-5%;width:110%;height:330px;aspect-ratio:auto;color:#e5ddce; }
    .sketch-guides { opacity: .12; }
    .ivory-hero-bg { background-position:62% center; }
    .ivory-hero-video { object-position:center; }
    .ivory-hero-overlay { background:linear-gradient(180deg,rgba(6,18,18,.24),rgba(6,18,18,.42)); }
}
@media (prefers-reduced-motion: reduce) {
    .ivory-hero-video { display:none; }
    .hero-drawing .drawing-strokes { visibility: visible; }
    .hero-drawing [data-draw] { stroke-dashoffset: 0 !important; }
    .drawing-pencil { display: none; }
}

/* Tiny, friendly decorators remain behind the page's interactive content. */
.house-sketch .drawing-strokes { stroke: #eee5d4; }
@media (max-width: 600px) {
    .house-sketch .drawing-strokes { stroke: #e5ddce; }
}
@media (prefers-reduced-motion: reduce) {
}

.scene-ground-shadow { filter:blur(8px);mix-blend-mode:multiply; }
.reference-plan-image {
    filter:brightness(0) saturate(100%) invert(95%) sepia(9%) saturate(305%) hue-rotate(343deg) brightness(103%) contrast(94%) drop-shadow(0 0 10px rgba(245,241,232,.5));
    opacity:1;
}
@media (max-width: 767px) {
    .hero-drawing { display:none !important; }
}
