@charset "UTF-8";
/* ===== Digital Nest — custom styles (Tailwind handles the rest) ===== */

html { scroll-behavior: smooth; }

/* Brand accent — Dark Azure for light surfaces, Soft Azure for dark surfaces */
:root {
    --azure: #00638e;
    --azure-rgb: 0, 99, 142;
    --azure-soft: #8cb9cc;
    --azure-soft-rgb: 140, 185, 204;
}

::selection { background: var(--azure); color: #ffffff; }
.dark ::selection { background: var(--azure-soft); color: #000000; }

/* Hero: background image with a black overlay at 40% opacity (deep blue fallback while it loads) */
.hero-brand {
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        #0a1a6b url("../img/hero-bg.jpg") center / cover no-repeat;
}

/* Hero: frosted-glass copy card */
.hero-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 30px 80px -20px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

/* Signature script for accent words — Marquette brush signature font.
   File: assets/fonts/Marquette.otf (Mrs Saint Delafield is the fallback). */
@font-face {
    font-family: "Marquette";
    src: local("Marquette"), local("Marquette Regular"),
         url("../fonts/Marquette.otf") format("opentype");
    font-display: swap;
}
.font-signature {
    display: inline-block;
    margin: 0.05em 0 -0.05em;
    font-family: "Marquette", "Mrs Saint Delafield", cursive;
    font-size: 1.15em;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    word-spacing: -0.15em;
    white-space: nowrap;
}

/* Subtle grid texture used inside cards */
.grid-lines {
    background-image:
        linear-gradient(rgba(120, 120, 120, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 120, 120, 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
}

.glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Outlined headline words */
.text-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(15, 15, 20, 0.35);
}
.dark .text-outline { -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35); }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Cursor glow */
.cursor-glow {
    position: fixed;
    z-index: 9999;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 65%);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.dark .cursor-glow {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 65%);
    mix-blend-mode: screen;
}

/* Card tilt */
.motion-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.25s ease, box-shadow 0.35s ease;
}

/* Shimmer CTA */
.shimmer-button { position: relative; overflow: hidden; }
.shimmer-button::after {
    content: "";
    position: absolute;
    inset: -30% auto -30% -35%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3.5s linear infinite;
}
@keyframes shimmer {
    0%   { transform: translateX(-130%) skewX(-20deg); }
    100% { transform: translateX(250%) skewX(-20deg); }
}

/* Orbiting dots in hero visual */
.orbit-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -5px;
    margin-top: -5px;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
}

/* FAQ accordion */
.faq-item .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item .faq-answer > div { overflow: hidden; }
.faq-item .faq-icon { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ===== Services: scroll-stacking panels ===== */
.svc-panel {
    --strip: 56px;         /* visible strip of a covered panel */
    --stick-top: 96px;     /* clears the fixed header */
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: #0b0b0d;
}
.dark .svc-panel { background: #0e0e11; }
.svc-panel:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }

.svc-label {
    display: flex;
    align-items: center;
    height: var(--strip);
    font-size: 12px;
    color: #a3a3a3;
}
.svc-content { padding-bottom: 2rem; }
.svc-title {
    display: flex;
    align-items: center;
    min-height: var(--strip);
    font-family: Manrope, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    transition: color 0.4s ease;
}
.svc-body p {
    max-width: 26rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #a3a3a3;
}
.svc-body ul { margin-top: 1.25rem; display: grid; gap: 0.6rem; font-size: 0.9rem; }
.svc-body li::before { content: "+"; margin-right: 0.5rem; font-weight: 700; }
.svc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding: 0.35rem 1.25rem 0.35rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.25s ease;
}
.svc-btn:hover { background: rgba(255, 255, 255, 0.08); }
.svc-btn span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #ffffff;
    color: #000000;
    transition: transform 0.25s ease;
}
.svc-btn:hover span { transform: translateX(2px); }

/* Image slot: gradient placeholder until a real image loads (see main.js) */
.svc-media {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--from), var(--to));
    background-size: cover;
    background-position: center;
}
.svc-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
}
.svc-num {
    position: absolute;
    right: 1.5rem;
    bottom: 0.5rem;
    font-family: Manrope, sans-serif;
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.25);
}
.svc-media.has-img::before,
.svc-media.has-img .svc-num { display: none; }

@media (min-width: 1024px) {
    .svc-panel {
        position: sticky;
        top: calc(var(--stick-top) + var(--i) * var(--strip));
        height: 400px;
        grid-template-columns: 120px 1fr 1fr;
    }
    .svc-label {
        align-self: start;
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }
    .svc-content { padding: 0 2.75rem; }
    .svc-title { color: #737373; }
    .svc-panel.is-active .svc-title { color: #ffffff; }
    .svc-body { transition: opacity 0.4s ease; }
    .svc-panel:not(.is-active) .svc-body { opacity: 0.35; }
    .svc-media { min-height: 0; height: 100%; }
}

/* ===== Process: scroll-driven roadmap ===== */
.rm { --accent: var(--azure-soft); --rail: 20px; }
.rm-dot { background: var(--azure-soft); box-shadow: 0 0 10px rgba(var(--azure-soft-rgb), 0.6); }

.rm-track {
    position: absolute;
    top: 12px;
    bottom: -24px;
    left: var(--rail);
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
}
.rm-fill {
    width: 100%;
    height: 0;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(var(--azure-soft-rgb), 0.5);
}

.rm-step { position: relative; padding: 0 0 3.5rem 3.5rem; }
.rm-step:last-of-type { padding-bottom: 0; }

.rm-marker {
    position: absolute;
    z-index: 1;
    top: 0;
    left: var(--rail);
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    transform: translateX(-50%) scale(0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    background: #141414;
    color: #737373;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.rm-step.is-active .rm-marker {
    transform: translateX(-50%) scale(1);
    border-color: var(--accent);
    background: var(--accent);
    color: #000000;
    box-shadow: 0 0 0 6px rgba(var(--azure-soft-rgb), 0.12);
}

.rm-card {
    position: relative;
    margin-top: 1rem;
    max-width: 340px;
    padding: 2.25rem 1.25rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background: #121212;
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.rm-step.is-active .rm-card { opacity: 1; transform: none; }
.rm-card:hover { border-color: rgba(var(--azure-soft-rgb), 0.35); }
.rm-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.2rem 0.7rem;
    border-radius: 0.3rem;
    background: #000000;
    font-size: 11px;
    color: #d4d4d4;
}
.rm-card h3 {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    font-family: Manrope, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}
.rm-card h3 span { color: #525252; }
.rm-card p { margin-top: 0.75rem; font-size: 0.8rem; line-height: 1.7; color: #737373; }

.rm-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}
.rm-divider span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 0.5rem;
    background: #000000;
    color: var(--azure-soft);
    font-size: 12px;
}

@media (min-width: 1024px) {
    .rm { --rail: 50%; }
    .rm-step { padding: 0 0 2.5rem; }
    .rm-card { width: calc(50% - 32px); }
    .rm-right .rm-card { margin-left: calc(50% + 32px); }
    .rm-left .rm-card { margin-left: auto; margin-right: calc(50% + 32px); transform: translateX(-28px); }
    .rm-step.rm-left.is-active .rm-card { transform: none; }
}

/* ===== About: photo + who we are ===== */
.about-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: grayscale(1) contrast(1.05);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-photo:hover img { transform: scale(1.03); }

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
    font-size: 12px;
    font-weight: 600;
}
.about-tags li { display: flex; align-items: center; gap: 0.6rem; }
.about-tags li::before { content: "\22EE"; color: #737373; font-weight: 700; }

/* ===== Our Work: project cards ===== */
.work-card {
    display: block;
    overflow: hidden;
    border: 2px solid #ffffff;
    border-radius: 1.25rem;
    background: #f5f5f5;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.dark .work-card { border-color: rgba(255, 255, 255, 0.12); background: #121215; }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.3); }
.work-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 1.1rem 1.1rem 0 0;
    background: #e5e5e5;
}
.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover .work-media img { transform: scale(1.04); }
.work-arrow {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--azure);
    color: #ffffff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}
.work-card:hover .work-arrow { opacity: 1; transform: scale(1); }
.work-tag {
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
    background: #ffffff;
    font-size: 11px;
    color: var(--azure);
}
.dark .work-tag { background: rgba(255, 255, 255, 0.06); color: var(--azure-soft); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
