        :root {
            --paper-bg: #fdfbf7;
            --pencil-gray: #333333;
            --graphite-light: #666666;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background: url("../img/background.png") no-repeat center center fixed;
            background-size: cover;
            color: var(--pencil-gray);
            font-family: 'Patrick Hand', cursive;
            line-height: 1.6;
            overflow-x: hidden;
        }

        h1,
        h2,
        h3 {
            font-family: 'Permanent Marker', cursive;
            margin-bottom: 1rem;
        }

        h1 {
            font-size: 3rem;
        }

        h2 {
            font-size: 2.2rem;
        }

        h3 {
            font-size: 1.5rem;
        }

        p {
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }

        /* Shared sketch box */
        .sketch-box {
            background: white;
            border: 2px solid var(--pencil-gray);
            border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
            padding: 2rem;
            box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        /* .sketch-box:hover moved to end of file to fix conflict with .reveal.active */

        /* Placeholders */
        .img-placeholder,
        .mini-img-placeholder {
            border: 2px dashed var(--pencil-gray);
            background-color: #eee;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--graphite-light);
            position: relative;
            padding: 1rem;
        }

        .img-placeholder span,
        .mini-img-placeholder span {
            font-family: 'Architects Daughter', cursive;
            font-size: 0.95rem;
            max-width: 85%;
        }

        .img-placeholder::after,
        .mini-img-placeholder::after {
            display: none;
        }

        .img-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .img-placeholder {
            width: 100%;
            height: 320px;
        }

        .mini-img-placeholder {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            padding: 0;
            overflow: hidden;
            border: none;
            /* Remove border if images have their own or if not needed */
            background: transparent;
        }

        .mini-img-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            /* or cover, depending on image */
        }

        /* Hide the placeholder text when we have real images, or just remove the ::after rule for these if possible. 
           For now we'll force hide it for mini-img-placeholder specifically if that helps, but simpler to just ensure image covers it. 
           With overflow hidden and image 100%, z-index might be needed. */
        .mini-img-placeholder::after {
            display: none;
        }

        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* ================= HERO SECTION (MATCH THE IMAGE) ================= */
        .hero-shell {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 3% 3.5rem;
        }

        .hero-card {
            border: none;
            background: transparent;
            box-shadow: none;
            padding-bottom: 2.5rem;
        }

        /* Top bar with logo & nav */
        .hero-topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0;
            /* margin-bottom: 0.5rem; */
            width: 100%;
        }

        .hero-logo-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .hero-logo-placeholder {
            width: 200px;
            height: 100px;
            /* border-radius: 50%; */
            /* border: 2px dashed var(--pencil-gray); */
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .hero-logo-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .hero-logo-placeholder span {
            display: none;
        }

        .hero-logo-title-placeholder {
            border: 2px dashed var(--pencil-gray);
            border-radius: 999px;
            padding: 6px 20px;
            min-width: 190px;
        }

        .hero-logo-title-placeholder span {
            font-family: 'Architects Daughter', cursive;
            font-size: 1.05rem;
        }

        .hero-nav {
            display: flex;
            gap: 1.8rem;
            font-size: 1rem;
            font-family: 'Permanent Marker', cursive;
            align-items: center;
            /* Ensure vertical alignment */
        }

        .hero-nav a.active {
            font-weight: 700;
        }

        .hero-nav a {
            text-decoration: none;
            color: var(--pencil-gray);
            position: relative;
        }

        .hero-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -5px;
            width: 0%;
            height: 8px;
            /* Smoother, less zigzaggy hand-drawn style */
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 C 20 6, 40 4, 60 5 S 90 6, 100 5' stroke='%23333' stroke-width='2' fill='none' vector-effect='non-scaling-stroke' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: 100% 100%;
            background-position: center;
            opacity: 0;
            /* Transition for Mouse Out: Fade opacity, shrink width delayed so it stays full while fading */
            transition: opacity 0.3s ease-out, width 0s linear 0.3s;
        }

        .hero-nav a:hover::after {
            width: 100%;
            opacity: 1;
            /* Transition for Mouse In: Draw width immediately, keep opacity 1 */
            transition: width 0.3s ease-out, opacity 0s;
            transition: width 0.3s ease-out, opacity 0s;
        }

        .nav-toggle {
            display: none;
            /* Hide on desktop */
        }

        /* Main interview frame */
        .hero-frame-wrap {
            padding: 1.2rem 2.6rem 3rem;
            position: relative;
        }

        .hero-frame {
            border: none;
            background: transparent;
            padding: 0;
            position: relative;
        }

        .hero-illustration-img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 4px;
        }

        /* Buttons attached to frame bottom */
        .hero-cta-bar {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translate(-50%, 20%);
            display: flex;
            justify-content: center;
            gap: 1.3rem;
            padding: 0;
            width: 100%;
            pointer-events: none;
            /* Let clicks pass through container if needed, but buttons need pointer-events: auto */
        }

        .hero-cta-bar>* {
            pointer-events: auto;
        }

        .hero-cta-btn {
            background: url("../img/button texture.png") no-repeat center center;
            background-size: 100% 100%;
            border: none;
            border-radius: 8px;
            padding: 0.75rem 1.8rem;
            font-family: 'Permanent Marker', cursive;
            font-size: 1.1rem;
            box-shadow: none;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
            position: relative;
            overflow: hidden;
        }

        .hero-cta-btn:hover {
            transform: translateY(-2px);
        }

        .hero-cta-btn.cta-highlight {
            box-shadow: 0 0 0 6px rgba(244, 225, 161, 0.35), 0 10px 20px rgba(0, 0, 0, 0.18);
            animation: ctaFlash 1.2s ease-out;
        }

        @keyframes ctaFlash {
            0% {
                transform: translateY(0) scale(1);
                box-shadow: 0 0 0 0 rgba(244, 225, 161, 0.35);
            }

            40% {
                transform: translateY(-2px) scale(1.02);
                box-shadow: 0 0 0 8px rgba(244, 225, 161, 0.18);
            }

            100% {
                transform: translateY(0) scale(1);
                box-shadow: 0 0 0 0 rgba(244, 225, 161, 0);
            }
        }

        /* Bottom feature row */
        .hero-features-row {
            margin-top: 2.2rem;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 4rem;
            padding: 0 1rem;
            text-align: center;
        }

        .hero-features-row>div {
            flex: 1;
            padding: 0 1rem;
            position: relative;
            display: flex;
            flex-direction: column-reverse;
            align-items: center;
        }

        .hero-features-row>div:not(:last-child)::after {
            content: "";
            position: absolute;
            right: -3px;
            top: 10%;
            height: 80%;
            width: 8px;
            background-color: transparent;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 100' preserveAspectRatio='none'%3E%3Cpath d='M 5 0 C 2 20, 8 40, 5 60 S 2 90, 5 100' stroke='%23333' stroke-width='2' fill='none' vector-effect='non-scaling-stroke' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: 100% 100%;
            background-position: center;
        }

        /* Adjust for smaller screens where they might wrap */
        @media (max-width: 768px) {
            .hero-features-row>div:not(:last-child)::after {
                display: none;
            }
        }

        .hero-feature-title {
            margin-bottom: 0.6rem;
            margin-top: 0;
            font-family: 'Permanent Marker', cursive;
            font-size: 1rem;
            font-weight: 500;
            /* Regular weight usually looks better for marker fonts */
            letter-spacing: 0.05em;
        }

        @media (max-width: 900px) {
            .hero-topbar {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .hero-shell {
                padding: 1.5rem 3% 2.5rem;
            }
        }

        /* =============== LOWER PAGE SECTIONS =============== */
        section.content-section {
            padding: 4rem 5%;
        }

        .section-label {
            font-family: 'Architects Daughter', cursive;
            font-size: 1rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            opacity: 0.7;
            margin-bottom: 0.5rem;
        }

        .section-intro {
            max-width: 720px;
            margin-bottom: 2rem;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .problem-solution {
            background-color: rgba(255, 255, 255, 0.7);
        }

        .card-title {
            text-decoration: underline;
            text-decoration-style: wavy;
        }

        .tech-pill {
            display: inline-block;
            margin: 6px;
            padding: 5px 15px;
            border: 1px solid var(--pencil-gray);
            border-radius: 20px;
            font-weight: bold;
            background: #fff;
        }

        .cta-box {
            text-align: center;
        }

        footer {
            text-align: center;
            padding: 3rem;
            border-top: 2px solid var(--pencil-gray);
            margin-top: 2rem;
        }

        /* Reveal animation */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease-out;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        @media (max-width: 700px) {
            h1 {
                font-size: 2.3rem;
            }
        }

        /* === INTERACTIVE ARCHITECTURE CSS - COMPACT === */
        :root {
            /* extending specific vars for this section */
            --highlight: #f4e1a1;
            --accent-line: #999999;
        }

        /* Scoped / Renamed Sketch Box for Interactive Section */
        .interactive-sketch-box {
            background: #ffffff;
            border: 2px solid var(--pencil-gray);
            border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
            padding: 1rem 1.2rem;
            /* REDUCED PADDING */
            box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.18);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            position: relative;
        }

        .interactive-sketch-box::before {
            content: "";
            position: absolute;
            inset: 8px 10px;
            border-radius: inherit;
            border: 1px dashed rgba(0, 0, 0, 0.18);
            pointer-events: none;
        }

        .interactive-sketch-box:hover {
            transform: translateY(-2px) rotate(-0.4deg);
            box-shadow: 5px 7px 0 rgba(0, 0, 0, 0.22);
        }

        .page-shell {
            max-width: 1000px;
            /* REDUCED MAX-WIDTH */
            margin: 0 auto;
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 1rem;
            margin-bottom: 0.8rem;
            /* REDUCED MARGIN */
        }

        .page-header-left {
            max-width: 70%;
        }

        .page-subtitle {
            font-family: 'Architects Daughter', cursive;
            font-size: 0.85rem;
            /* REDUCED FONT */
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--graphite-light);
            margin-bottom: 0.3rem;
        }

        .header-note {
            font-size: 0.9rem;
            color: var(--graphite-light);
            max-width: 480px;
            line-height: 1.4;
        }

        /* Override H1 specifically for this section if needed, or rely on scoped classes */
        #interactive-design h1 {
            font-size: 1.8rem;
            /* REDUCED FONT */
            margin-bottom: 0.4rem;
        }

        .label-pill {
            padding: 0.25rem 0.8rem;
            /* REDUCED PADDING */
            border-radius: 999px;
            border: 2px solid var(--pencil-gray);
            background: #fff7d1;
            font-size: 0.85rem;
            font-family: 'Architects Daughter', cursive;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .label-pill span {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            border: 2px solid var(--pencil-gray);
            background: #fff;
            box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
        }

        .layout {
            display: grid;
            grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
            gap: 1rem;
            /* REDUCED GAP */
        }

        @media (max-width: 880px) {
            .layout {
                grid-template-columns: 1fr;
            }

            .page-header {
                flex-direction: column;
                align-items: flex-start;
            }
        }

        /* FLOW SECTION (LEFT) */
        .flow-header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.9rem;
            margin-bottom: 0.6rem;
        }

        .step-label {
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .step-label strong {
            font-family: 'Permanent Marker', cursive;
            font-size: 1rem;
        }

        .step-label small {
            font-size: 0.85rem;
            color: var(--graphite-light);
        }

        .chip-loop {
            font-size: 0.75rem;
            /* REDUCED FONT */
            font-family: 'Architects Daughter', cursive;
            padding: 0.15rem 0.5rem;
            /* REDUCED PADDING */
            border-radius: 999px;
            border: 1.5px dashed var(--pencil-gray);
            background: #fff;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
        }

        .loop-doodle {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: 1.5px solid var(--pencil-gray);
            border-style: dashed;
        }

        .progress-wrap {
            margin-bottom: 0.6rem;
        }

        .progress-bar {
            width: 100%;
            height: 10px;
            /* REDUCED HEIGHT */
            border-radius: 999px;
            border: 2px solid var(--pencil-gray);
            background:
                repeating-linear-gradient(-45deg,
                    #fdfbf7,
                    #fdfbf7 3px,
                    #f2ede1 3px,
                    #f2ede1 6px);
            position: relative;
            overflow: hidden;
        }

        .progress-inner {
            height: 100%;
            width: 12%;
            background:
                repeating-linear-gradient(-45deg,
                    rgba(0, 0, 0, 0.1),
                    rgba(0, 0, 0, 0.1) 2px,
                    rgba(0, 0, 0, 0) 2px,
                    rgba(0, 0, 0, 0) 4px);
            border-right: 3px solid var(--pencil-gray);
            transition: width 210ms ease-out;
        }

        .progress-thumb {
            position: absolute;
            top: -6px;
            transform: translateX(-50%);
            border-radius: 50%;
            width: 18px;
            /* REDUCED SIZE */
            height: 18px;
            border: 2px solid var(--pencil-gray);
            background: #fffbe5;
            box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-family: 'Architects Daughter', cursive;
            pointer-events: none;
        }

        .progress-meta {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.2rem;
            font-size: 0.75rem;
            color: var(--graphite-light);
            font-family: 'Architects Daughter', cursive;
        }

        .flow-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            /* REDUCED MIN WIDTH */
            gap: 0.5rem;
            /* REDUCED GAP */
            margin-top: 0.6rem;
        }

        .flow-node {
            border-radius: 15px;
            border: 2px solid var(--pencil-gray);
            background:
                linear-gradient(transparent 21px, rgba(0, 0, 0, 0.06) 22px, transparent 23px),
                #ffffff;
            background-size: 100% 24px;
            padding: 0.4rem 0.5rem 0.5rem;
            /* REDUCED PADDING */
            cursor: pointer;
            text-align: left;
            position: relative;
            overflow: hidden;
            transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
            font-size: 0.85rem;
        }

        .flow-node:hover {
            transform: translateY(-1px) rotate(-0.3deg);
            box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.2);
        }

        .flow-node-step {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.7rem;
            color: var(--graphite-light);
            margin-bottom: 0.15rem;
        }

        .flow-node-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            border: 1.5px solid var(--pencil-gray);
            background: #fff;
        }

        .flow-node-title {
            font-family: 'Permanent Marker', cursive;
            font-size: 0.85rem;
            /* REDUCED FONT */
            margin-bottom: 0.1rem;
            line-height: 1.2;
        }

        .flow-node-caption {
            font-size: 0.75rem;
            color: var(--graphite-light);
            max-width: 260px;
            line-height: 1.2;
        }

        .flow-node.active {
            background-color: #fffbe0;
            box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.25);
        }

        .flow-node.active .flow-node-dot {
            background: #fff;
            border-width: 2px;
        }

        .flow-node.completed {
            background-color: #eefce2;
            border-style: dashed;
        }

        .flow-node.completed .flow-node-title {
            text-decoration: line-through;
            text-decoration-style: wavy;
            text-decoration-thickness: 1.5px;
        }

        .flow-node:focus-visible {
            outline: 2px dashed var(--pencil-gray);
            outline-offset: 3px;
        }

        .flow-footnote {
            font-size: 0.75rem;
            color: var(--graphite-light);
            margin-top: 0.4rem;
            font-family: 'Architects Daughter', cursive;
        }

        .flow-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 0.7rem;
            gap: 0.6rem;
            flex-wrap: wrap;
        }

        .btn {
            border-radius: 999px;
            padding: 0.35rem 0.9rem;
            /* REDUCED PADDING */
            border: 2px solid var(--pencil-gray);
            background: #fff;
            cursor: pointer;
            font-family: 'Permanent Marker', cursive;
            font-size: 0.85rem;
            box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.2);
            transition: transform 0.1s ease, box-shadow 0.1s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }

        .btn:hover {
            transform: translateY(-1px);
            box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.23);
        }

        .btn:disabled {
            opacity: 0.45;
            cursor: default;
            transform: none;
            box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.15);
        }

        .btn-primary {
            background: #fff4b8;
        }

        .btn svg {
            width: 16px;
            height: 16px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* DETAIL SIDE (RIGHT) */
        .detail-card {
            position: relative;
        }

        .detail-tag {
            font-family: 'Architects Daughter', cursive;
            font-size: 0.85rem;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: var(--graphite-light);
            margin-bottom: 0.3rem;
        }

        .detail-step-pill {
            font-size: 0.85rem;
            margin-bottom: 0.2rem;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .detail-step-pill::before {
            content: "";
            width: 30px;
            /* REDUCED WIDTH */
            height: 10px;
            border-bottom: 2px solid var(--pencil-gray);
            border-left: 2px solid var(--pencil-gray);
            transform: skewX(-15deg);
            display: inline-block;
        }

        #interactive-design h2.detail-title {
            margin-bottom: 0.4rem;
            font-size: 1.4rem;
            /* REDUCED FONT */
            line-height: 1.2;
        }

        .detail-body {
            font-size: 0.9rem;
            /* REDUCED FONT */
            line-height: 1.5;
        }

        .detail-tech {
            margin-top: 0.4rem;
            font-size: 0.85rem;
            color: var(--graphite-light);
            font-family: 'Architects Daughter', cursive;
            background: #fff9d4;
            border-radius: 12px;
            padding: 0.25rem 0.5rem;
            display: inline-block;
        }

        .detail-tech.hidden {
            display: none;
        }

        .detail-meta {
            margin-top: 0.7rem;
            border-top: 2px dashed rgba(0, 0, 0, 0.25);
            padding-top: 0.5rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 0.5rem;
            align-items: center;
        }

        .legend {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            font-size: 0.75rem;
            color: var(--graphite-light);
        }

        .legend-item {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
        }

        .legend-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            border: 2px solid var(--pencil-gray);
            background: #fff;
        }

        .legend-dot.current {
            background: #fff4b8;
        }

        .legend-dot.completed {
            background: #e2fbd7;
        }

        .legend-dot.upcoming {
            background: #f5f5f5;
        }

        .tech-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            font-size: 0.75rem;
        }

        .tech-chip {
            padding: 0.2rem 0.5rem;
            border-radius: 999px;
            border: 1.5px solid var(--pencil-gray);
            background: #fff;
            font-weight: bold;
            font-size: 0.75rem;
        }

        .little-arrow {
            position: absolute;
            left: -12px;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            pointer-events: none;
            display: none;
        }

        @media (min-width: 881px) {
            .little-arrow {
                display: block;
            }
        }

        .little-arrow svg {
            width: 100%;
            height: 100%;
        }

        /* Fix: ensure hover takes precedence over reveal active state */
        .sketch-box:hover {
            transform: translateY(-3px) rotate(0.5deg) !important;
            box-shadow: 5px 8px 15px rgba(0, 0, 0, 0.1);
        }

        /* ================= MEDIA QUERIES FOR RESPONSIVENESS ================= */

        /* Tablet (max-width: 900px) - Partial adjustments already exist, enhancing them */
        @media (max-width: 900px) {
            .hero-shell {
                padding: 1rem 1.5rem 2rem;
            }

            .hero-shell {
                padding: 1rem 1.5rem 2rem;
                position: relative;
                /* Context for absolute positioning if needed */
            }

            .hero-topbar {
                /* Changed to row to allow Logo ----- Toggle layout */
                display: flex;
                /* Ensure flex is explicit */
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                gap: 1rem;
                text-align: left;
                flex-wrap: wrap;
                position: relative;
                /* Context for button */
            }

            .hero-logo-wrap {
                justify-content: flex-start;
                /* Ensure logo doesn't overlap button space if text gets long */
                padding-right: 3rem;
            }

            /* Hamburger Button - Strictly Positioned Top Right */
            .nav-toggle {
                display: block;
                background: transparent;
                border: none;
                cursor: pointer;
                padding: 0.5rem;
                color: var(--pencil-gray);
                position: absolute;
                top: 0.5rem;
                /* Moved down for better alignment */
                right: 0;
                z-index: 20;
                /* Ensure on top */
            }

            .nav-toggle svg {
                width: 28px;
                height: 28px;
            }

            /* HAMBURGER ANIMATION */
            .nav-toggle svg line {
                transition: transform 0.3s ease, opacity 0.3s ease;
                transform-origin: center;
            }

            /* Top line */
            .nav-toggle.open svg line:nth-child(1) {
                transform: translateY(6px) rotate(45deg);
            }

            /* Middle line */
            .nav-toggle.open svg line:nth-child(2) {
                opacity: 0;
            }

            /* Bottom line */
            .nav-toggle.open svg line:nth-child(3) {
                transform: translateY(-6px) rotate(-45deg);
            }

            /* Responsive Nav Menu */
            .hero-nav {
                /* Display is flex now to support transition, controlled by max-height */
                display: flex;
                flex-direction: column;
                /* Stack links vertically */
                width: 100%;
                text-align: center;
                gap: 1.2rem;
                background: transparent;
                /* Transparent background as requested */
                /* border-top: 1px dashed var(--pencil-gray);  Removed border */
                margin-top: 2.8rem;
                /* Enough space for the row above */

                /* TRANSITION PROPERTIES */
                max-height: 0;
                opacity: 0;
                overflow: hidden;
                padding: 0;
                /* Remove padding when closed */
                transform: translateY(-10px);
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }

            .hero-nav.open {
                max-height: 400px;
                /* Arbitrary large height to allow expansion */
                opacity: 1;
                transform: translateY(0);
                padding: 1.5rem 0;
                /* Restore padding when open */
                /* border-bottom: 1px dashed var(--pencil-gray); Removed border */
            }

            /* Adjust CTA bar to be static on smaller screens so it doesn't float weirdly */
            .hero-frame-wrap {
                padding: 1rem 0 3rem;
                /* Remove side padding to give image more space */
            }

            .hero-cta-bar {
                position: relative;
                bottom: auto;
                left: auto;
                transform: none;
                flex-direction: column;
                align-items: center;
                margin-top: 0.5rem;
                pointer-events: auto;
            }

            .hero-cta-btn {
                width: 100%;
                max-width: 300px;
                text-align: center;
            }

            .hero-features-row {
                gap: 2rem;
            }
        }

        /* Mobile (max-width: 600px) */
        @media (max-width: 600px) {
            h1 {
                font-size: 2rem;
            }

            h2 {
                font-size: 1.8rem;
            }

            p {
                font-size: 1rem;
            }

            /* Hero adjustments */
            .hero-logo-placeholder {
                width: 160px;
                height: 80px;
            }

            .hero-nav {
                font-size: 0.9rem;
                gap: 0.8rem;
                width: 100%;
                justify-content: center;
            }

            .hero-frame-wrap {
                padding-bottom: 1rem;
            }

            /* Stack features vertically with dividers removed, but use SIDE-BY-SIDE layout for items */
            .hero-features-row {
                flex-direction: column;
                gap: 1rem;
                padding: 0 1rem;
            }

            .hero-features-row>div {
                padding: 0.8rem;
                flex-direction: row;
                /* Image Left, Text Right */
                align-items: center;
                justify-content: flex-start;
                text-align: left;
                gap: 1rem;
                /* Optional: Add a card look */
                background: rgba(255, 255, 255, 0.6);
                border-radius: 12px;
                border: 1px dashed var(--pencil-gray);
            }

            .hero-features-row>div:not(:last-child)::after {
                display: none;
            }

            /* Scale down the image for this compact view */
            .mini-img-placeholder {
                width: 60px;
                height: 60px;
                flex-shrink: 0;
            }

            .hero-feature-title {
                margin: 0;
                font-size: 1rem;
                line-height: 1.2;
            }

            /* Content sections */
            section.content-section {
                padding: 3rem 1.5rem;
            }

            /* Grids */
            .grid-2,
            .grid-3 {
                grid-template-columns: 1fr;
                /* Force single column */
                gap: 1.5rem;
            }

            /* Interactive Architecture Section */
            .page-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }

            .page-header-left {
                max-width: 100%;
            }

            .layout {
                grid-template-columns: 1fr;
            }

            .interactive-sketch-box {
                padding: 1rem;
            }

            /* ACCORDION LOGIC FOR FLOW GRID */
            .flow-grid {
                grid-template-columns: 1fr;
                /* Single column */
                gap: 0.5rem;
            }

            /* Inactive Nodes: Collapsed state */
            .flow-node {
                padding: 0.5rem;
                display: flex;
                align-items: center;
                gap: 0.5rem;
                height: auto;
                cursor: pointer;
            }

            /* Hide extended info for inactive nodes to save space */
            .flow-node-caption,
            .flow-node-step {
                display: none;
            }

            /* Keep title visible but compact */
            .flow-node-title {
                margin: 0;
                font-size: 0.85rem;
                flex: 1;
            }

            /* Add a small indicator (like the dot) to show it's a step */
            .flow-node::before {
                content: "";
                display: block;
                width: 8px;
                height: 8px;
                border-radius: 50%;
                border: 1.5px solid var(--pencil-gray);
                background: #fff;
                flex-shrink: 0;
            }

            .flow-node.completed::before {
                background: #e2fbd7;
            }

            /* ACTIVE NODE: Expanded state */
            .flow-node.active {
                display: block;
                /* Restore block layout for full content */
                padding: 0.8rem;
                border-width: 2px;
                background-color: #fffbe0;
            }

            .flow-node.active::before {
                display: none;
                /* Hide the makeshift dot, rely on internal .flow-node-step */
            }

            /* Show all children when active */
            .flow-node.active .flow-node-caption,
            .flow-node.active .flow-node-step {
                display: block;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }

            .detail-card {
                margin-top: 1rem;
            }

            /* Hide the arrow between flow and detail on mobile since they stack */
            .little-arrow {
                display: none;
            }

            /* Footer */
            footer {
                padding: 2rem 1rem;
            }

            /* HIDE EXTERNAL DETAIL CARD ON MOBILE */
            .detail-card {
                display: none;
            }
        }

        /* Inline Mobile Details Styling (Hidden on larger screens) */
        .flow-mobile-details {
            display: none;
        }

        @media (max-width: 600px) {
            .flow-node.active .flow-mobile-details {
                display: block;
                margin-top: 0.8rem;
                padding-top: 0.8rem;
                border-top: 1px dashed rgba(0, 0, 0, 0.15);
                font-size: 0.9rem;
                line-height: 1.4;
                color: var(--pencil-gray);
            }

            .flow-mobile-tech {
                margin-top: 0.6rem;
                font-size: 0.8rem;
                display: inline-block;
                background: #fff;
                border: 1px solid var(--pencil-gray);
                border-radius: 6px;
                padding: 2px 8px;
                font-family: 'Architects Daughter', cursive;
            }
        }

        /* Small Mobile (max-width: 400px) */
        @media (max-width: 400px) {
            .flow-grid {
                grid-template-columns: 1fr;
                /* Single column for flow steps on very narrow screens */
            }

            .hero-nav a {
                font-size: 0.85rem;
            }
        }

/* ============ Responsive layout refresh ============ */
.hero-grid {
    display: none;
}

.hero-frame-desktop {
    display: block;
}

@media (max-width: 900px) {
    body {
        background-attachment: scroll;
        background-size: cover;
    }

    .hero-frame-desktop {
        display: none;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: center;
        gap: clamp(1rem, 3vw, 2.5rem);
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid var(--pencil-gray);
        border-radius: 22px;
        padding: clamp(1.1rem, 3vw, 2rem);
        box-shadow: 3px 5px 0 rgba(0, 0, 0, 0.08);
    }

    .hero-shell {
        padding: 1.2rem 1rem 2.4rem;
        gap: 1.2rem;
    }

    .hero-card {
        padding: 0;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .hero-eyebrow {
        font-family: 'Architects Daughter', cursive;
        font-size: 0.95rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--graphite-light);
    }

    .hero-title {
        font-size: clamp(2.05rem, 2vw + 1.5rem, 2.6rem);
        margin: 0;
    }

    .hero-subtitle {
        margin: 0;
        color: var(--graphite-light);
        font-size: 1.02rem;
    }

    .hero-bullets {
        list-style: none;
        padding: 0;
        margin: 0.35rem 0 0;
        display: grid;
        gap: 0.4rem;
        color: var(--graphite-light);
        font-size: 1rem;
    }

    .hero-bullets li {
        display: flex;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .hero-bullets li::before {
        content: "•";
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .hero-cta-bar {
        position: static;
        transform: none;
        display: flex;
        flex-wrap: wrap;
        gap: 0.7rem;
        justify-content: flex-start;
        margin-top: 0.6rem;
        pointer-events: auto;
    }

    .hero-cta-btn {
        min-height: 48px;
        padding: 0.8rem 1.6rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        background-size: 100% 100%;
        width: 100%;
        max-width: 320px;
    }

    .hero-cta-btn.secondary {
        background: #fff;
        border: 2px dashed var(--pencil-gray);
        box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.12);
    }

                        .hero-frame {
        border: 2px solid var(--pencil-gray);
        background: #ffffff;
        padding: 0.75rem;
        border-radius: 18px;
        box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.12);
        width: 100%;
        max-width: 520px;
    }

    .hero-illustration-img {
        border-radius: 12px;
    }

    .hero-features-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
        margin-top: 1.25rem;
    }

    .hero-features-row>div {
        background: rgba(255, 255, 255, 0.8);
        border: 2px solid var(--pencil-gray);
        border-radius: 16px;
        padding: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
        box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.08);
    }

    .hero-features-row>div:not(:last-child)::after {
        display: none;
    }

    .mini-img-placeholder {
        width: 64px;
        height: 64px;
    }

    .hero-feature-title {
        margin: 0;
        font-size: 1.05rem;
    }

}

@media (min-width: 601px) and (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        padding: 1.4rem;
    }

    .hero-cta-btn {
        width: auto;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        border-radius: 18px;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta-btn,
    .hero-cta-btn.secondary {
        width: 100%;
    }
}

@media (min-width: 901px) {
    .hero-grid {
        display: none;
    }

    .hero-frame-desktop {
        display: block;
    }

    .hero-cta-bar {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 20%);
        display: flex;
        justify-content: center;
        gap: 1.3rem;
        width: 100%;
        pointer-events: none;
    }

    .hero-cta-bar>* {
        pointer-events: auto;
    }

    .hero-cta-btn {
        padding: 0.75rem 1.8rem;
        min-height: 0;
        width: auto;
    }

    .hero-cta-btn.secondary {
        background: url("../img/button texture.png") no-repeat center center;
        background-size: 100% 100%;
        border: none;
        box-shadow: none;
    }

    .hero-features-row {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4rem;
        padding: 0 1rem;
        text-align: center;
        margin-top: 2.2rem;
    }

    .hero-features-row>div {
        flex: 1;
        padding: 0 1rem;
        position: relative;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .hero-features-row>div:not(:last-child)::after {
        content: "";
        position: absolute;
        right: -3px;
        top: 10%;
        height: 80%;
        width: 8px;
        background-color: transparent;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 100' preserveAspectRatio='none'%3E%3Cpath d='M 5 0 C 2 20, 8 40, 5 60 S 2 90, 5 100' stroke='%23333' stroke-width='2' fill='none' vector-effect='non-scaling-stroke' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: center;
    }

    .mini-img-placeholder {
        width: 140px;
        height: 140px;
    }

    .hero-feature-title {
        margin-top: 0;
        margin-bottom: 0.6rem;
        font-size: 1rem;
        text-align: center;
    }
}
