/* ================================================
   michaelortegon.com v3 — Design System
   "Contemplative Editorial"
   Cormorant Garamond display + Outfit body
   Warm earth palette — alternating asymmetry (walk the path)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --linen:          #f4efe7;
    --parchment:      #ebe4d8;
    --sand:           #d9cfc0;
    --bark:           #2a2420;
    --bark-soft:      #3d3530;
    --stone:          #6b605a;
    --stone-light:    #9a8f87;
    --moss:           #4a6355;
    --moss-deep:      #3a5244;
    --moss-glow:      rgba(74, 99, 85, 0.12);
    --clay:           #a07a62;
    --clay-glow:      rgba(160, 122, 98, 0.1);
    --ember:          #c4956e;

    --serif:   'Cormorant Garamond', 'Garamond', 'Georgia', serif;
    --sans:    'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    --gutter: clamp(1.5rem, 5vw, 4rem);
}

/* ======================== */
/* Reset                    */
/* ======================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--bark);
    background: var(--linen);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--moss-glow);
    color: var(--bark);
}

/* ======================== */
/* Grain                    */
/* ======================== */

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    mix-blend-mode: multiply;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}

/* ======================== */
/* Navigation               */
/* ======================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.4rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
    padding: 0.9rem var(--gutter);
    background: rgba(244, 239, 231, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 36, 32, 0.06);
}

.nav-name {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--bark);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--stone);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--bark);
}

.nav-links .btn-nav {
    padding: 0.6rem 1.4rem;
    background: transparent;
    color: var(--moss);
    border: 1.5px solid var(--moss);
    border-radius: 3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-links .btn-nav:hover {
    background: var(--moss);
    color: var(--linen);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--bark);
    margin: 6px 0;
    transition: all 0.35s ease;
    transform-origin: center;
}

/* ======================== */
/* Scroll Reveal            */
/* ======================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-slow {
    opacity: 0;
    transition: opacity 1.6s ease;
}

.reveal-slow.visible {
    opacity: 1;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Organic stagger */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.18s; }
.stagger > *:nth-child(3) { transition-delay: 0.3s; }
.stagger > *:nth-child(4) { transition-delay: 0.5s; }
.stagger > *:nth-child(5) { transition-delay: 0.65s; }

/* ======================== */
/* ZONE: Opening            */
/* Lean: LEFT (gentle)      */
/* ======================== */

.opening {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--gutter) 1.1fr 0.9fr var(--gutter);
    grid-template-rows: 1fr auto;
    align-items: end;
    padding-bottom: 6rem;
    position: relative;
    background:
        radial-gradient(ellipse 60% 50% at 30% 55%, rgba(74, 99, 85, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 75% 35%, rgba(160, 122, 98, 0.03) 0%, transparent 60%),
        var(--linen);
}

.opening::before {
    content: 'inquire';
    position: absolute;
    font-family: var(--serif);
    font-size: clamp(10rem, 20vw, 22rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(42, 36, 32, 0.025);
    white-space: nowrap;
    bottom: 12%;
    right: -3%;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
    line-height: 1;
}

.opening-text {
    grid-column: 2 / 3;
    grid-row: 1;
    align-self: end;
    padding-bottom: 2rem;
}

.opening-label {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.opening-label::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--moss);
}

.opening-name {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--bark);
    margin-bottom: 1.2rem;
}

.opening-location {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--stone-light);
    letter-spacing: 0.02em;
}

.opening-aside {
    grid-column: 3 / 4;
    grid-row: 1;
    align-self: end;
    padding-left: clamp(1.5rem, 3vw, 3rem);
    padding-bottom: 2.5rem;
    border-left: 1px solid rgba(42, 36, 32, 0.1);
}

.opening-aside p {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.65;
    color: var(--stone);
    max-width: 360px;
}

.opening-scroll {
    grid-column: 2 / 4;
    grid-row: 2;
    text-align: center;
    padding-top: 3rem;
}

.opening-scroll svg {
    width: 16px;
    height: 16px;
    stroke: var(--stone-light);
    fill: none;
    stroke-width: 1.5;
    animation: drift 3s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(6px); opacity: 0.6; }
}

/* ======================== */
/* Divider                  */
/* ======================== */

.divider {
    max-width: 80px;
    margin: 0 auto;
    padding: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sand), transparent);
    border: none;
}

/* ======================== */
/* ZONE: Reflective         */
/* Lean: RIGHT (gentle)     */
/* ======================== */

.reflective {
    padding: clamp(6rem, 12vw, 12rem) var(--gutter);
    position: relative;
    background: var(--linen);
}

.reflective-lead {
    max-width: 520px;
    margin: 0 0 5rem auto;
    margin-right: 10%;
    text-align: right;
}

.reflective-lead p {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--bark);
}

/* Thread line — shifted slightly right of center */
.reflective-field {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem 3rem;
    position: relative;
}

.reflective-field::before {
    content: '';
    position: absolute;
    top: -2rem;
    bottom: -2rem;
    left: 45%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--sand) 20%, var(--sand) 80%, transparent 100%);
    pointer-events: none;
}

.q-card {
    padding: 1.5rem 0;
}

.q-card:nth-child(odd) {
    text-align: right;
    padding-right: clamp(1rem, 2vw, 2rem);
}

.q-card:nth-child(even) {
    padding-left: clamp(1rem, 2vw, 2rem);
    padding-top: 3rem;
}

.q-card blockquote {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    color: var(--stone);
    margin: 0;
}

.q-card .q-num {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--moss);
    opacity: 0.6;
    margin-bottom: 0.75rem;
    display: block;
}

.reflective-close {
    max-width: 480px;
    margin: 5rem auto 0;
    text-align: center;
    font-size: 1rem;
    color: var(--stone);
    line-height: 1.85;
}

/* ======================== */
/* ZONE: The Work           */
/* Lean: LEFT               */
/* ======================== */

.the-work {
    background: var(--parchment);
    padding: clamp(6rem, 12vw, 11rem) var(--gutter);
}

.the-work-inner {
    max-width: 960px;
    margin: 0 auto;
}

.the-work-header {
    max-width: 520px;
    margin-bottom: clamp(4rem, 8vw, 6rem);
    /* Leans left — no centering */
}

.the-work-header h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 1.2rem;
}

.the-work-header p {
    font-size: 1rem;
    color: var(--stone);
    max-width: 440px;
}

/* Alternating offset blocks — left lean */
.work-flow {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}

.work-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

/* Block 1: content LEFT, empty right */
.work-block:nth-child(1) .work-content {
    grid-column: 1;
    background: var(--linen);
    border-radius: 4px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}
.work-block:nth-child(1)::after {
    content: '';
    grid-column: 2;
}

/* Block 2: empty left, content RIGHT */
.work-block:nth-child(2) .work-content {
    grid-column: 2;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}
.work-block:nth-child(2)::before {
    content: '';
    grid-column: 1;
}

/* Block 3: content LEFT, empty right */
.work-block:nth-child(3) .work-content {
    grid-column: 1;
    background: var(--linen);
    border-radius: 4px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}
.work-block:nth-child(3)::after {
    content: '';
    grid-column: 2;
}

.work-content h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--bark);
}

.work-content h3 .block-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 0.4rem;
}

.work-content p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--stone);
}

/* ======================== */
/* ZONE: About              */
/* Lean: RIGHT              */
/* ======================== */

.about {
    padding: clamp(6rem, 12vw, 11rem) var(--gutter);
    background: var(--bark);
    color: var(--parchment);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: 'curiosity';
    position: absolute;
    font-family: var(--serif);
    font-size: clamp(8rem, 16vw, 18rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(235, 228, 216, 0.03);
    white-space: nowrap;
    top: 10%;
    right: -2%;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.03em;
    line-height: 1;
}

.about-layout {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

/* Sidebar LEFT this time (right lean = content right) */
.about-sidebar {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 8rem;
    padding: 2rem;
    border-right: 1px solid rgba(235, 228, 216, 0.1);
}

.about-text {
    grid-column: 2;
    grid-row: 1;
}

.about-text h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--parchment);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-text p {
    color: rgba(235, 228, 216, 0.75);
    line-height: 1.9;
    margin-bottom: 1.6em;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.about-sidebar .credential {
    font-family: var(--sans);
    font-size: 0.8rem;
    line-height: 1.9;
    color: rgba(235, 228, 216, 0.5);
    margin-bottom: 2rem;
}

.about-sidebar .credential strong {
    display: block;
    color: rgba(235, 228, 216, 0.8);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.about-link {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ember);
    text-decoration: none;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(196, 149, 110, 0.3);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.about-link:hover {
    color: var(--parchment);
    border-color: var(--parchment);
}

/* ======================== */
/* ZONE: Practical          */
/* Lean: LEFT (subtle)      */
/* ======================== */

.practical {
    padding: clamp(6rem, 12vw, 11rem) var(--gutter);
    background: var(--linen);
}

.practical-header {
    max-width: 480px;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    /* Left-aligned, not centered */
    margin-left: auto;
    margin-right: auto;
    padding-left: 5%;
    text-align: left;
}

.practical-header h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.practical-header p {
    color: var(--stone-light);
    font-size: 0.95rem;
}

.practical-cards {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--sand);
    border-radius: 6px;
    overflow: hidden;
}

.p-card {
    background: var(--linen);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.p-card .p-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 0.75rem;
}

.p-card .p-value {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: var(--bark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.p-card p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--stone);
    margin: 0;
}

.practical-note {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.88rem;
    color: var(--stone-light);
    font-style: italic;
}

/* ======================== */
/* ZONE: Invitation         */
/* Lean: RIGHT (gentle)     */
/* ======================== */

.invitation {
    padding: clamp(7rem, 14vw, 13rem) var(--gutter);
    position: relative;
    background:
        radial-gradient(ellipse 50% 50% at 60% 50%, var(--clay-glow) 0%, transparent 70%),
        var(--linen);
}

.invitation-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.4fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.invitation-aside {
    text-align: right;
    border-right: 1px solid rgba(42, 36, 32, 0.1);
    padding-right: clamp(1.5rem, 3vw, 3rem);
}

.invitation-aside .invitation-contact {
    font-size: 0.88rem;
    color: var(--stone-light);
    line-height: 2.2;
}

.invitation-aside .invitation-contact a {
    color: var(--stone);
    text-decoration: none;
    border-bottom: 1px solid rgba(42, 36, 32, 0.15);
    padding-bottom: 1px;
    transition: all 0.3s ease;
}

.invitation-aside .invitation-contact a:hover {
    color: var(--moss);
    border-color: var(--moss);
}

.invitation-main h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--bark);
    margin-bottom: 1.5rem;
}

.invitation-main .invitation-body {
    max-width: 480px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--stone);
    margin-bottom: 2.5rem;
}

.btn-warm {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--moss);
    color: var(--linen);
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-warm:hover {
    background: var(--moss-deep);
    color: var(--linen);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 99, 85, 0.15);
}

/* ======================== */
/* Footer                   */
/* ======================== */

footer {
    padding: 2rem var(--gutter);
    text-align: center;
    border-top: 1px solid rgba(42, 36, 32, 0.06);
}

footer p {
    font-size: 0.75rem;
    color: var(--stone-light);
    line-height: 1.8;
    margin: 0;
}

/* ======================== */
/* Responsive               */
/* ======================== */

@media (max-width: 900px) {
    .opening {
        grid-template-columns: var(--gutter) 1fr var(--gutter);
        grid-template-rows: 1fr auto auto;
        min-height: 90vh;
    }

    .opening-text {
        grid-column: 2;
    }

    .opening-aside {
        grid-column: 2;
        grid-row: 2;
        border-left: none;
        border-top: 1px solid rgba(42, 36, 32, 0.1);
        padding-left: 0;
        padding-top: 2rem;
        margin-top: 2rem;
    }

    .opening-scroll {
        grid-column: 2;
        grid-row: 3;
    }

    .reflective-lead {
        margin-right: auto;
        text-align: left;
    }

    .reflective-field {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .reflective-field::before {
        display: none;
    }

    .q-card:nth-child(odd) {
        text-align: left;
        padding-right: 0;
    }

    .q-card:nth-child(even) {
        padding-left: 0;
        padding-top: 0;
    }

    .q-card {
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(42, 36, 32, 0.06);
    }

    .work-block {
        grid-template-columns: 1fr;
    }

    .work-block:nth-child(1) .work-content,
    .work-block:nth-child(2) .work-content,
    .work-block:nth-child(3) .work-content {
        grid-column: 1;
    }

    .work-block::before,
    .work-block::after {
        display: none !important;
    }

    .work-block:nth-child(2) .work-content {
        background: var(--linen);
        border-radius: 4px;
        padding: clamp(1.5rem, 3vw, 2.5rem);
    }

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

    .about-sidebar {
        grid-column: 1;
        grid-row: 2;
        position: static;
        border-right: none;
        border-top: 1px solid rgba(235, 228, 216, 0.1);
        padding: 2rem 0 0;
    }

    .about-text {
        grid-column: 1;
        grid-row: 1;
    }

    .practical-header {
        padding-left: 0;
    }

    .practical-cards {
        grid-template-columns: 1fr;
    }

    .invitation-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .invitation-aside {
        order: 2;
        text-align: center;
        border-right: none;
        padding-right: 0;
        border-top: 1px solid rgba(42, 36, 32, 0.08);
        padding-top: 2rem;
    }

    .invitation-main {
        order: 1;
    }

    .invitation-main .invitation-body {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(244, 239, 231, 0.97);
        backdrop-filter: blur(20px);
        padding: 1.5rem var(--gutter);
        gap: 1rem;
        border-bottom: 1px solid rgba(42, 36, 32, 0.06);
    }

    .nav.menu-open .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav.menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav.menu-open .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .opening-name {
        font-size: clamp(2.8rem, 10vw, 3.5rem);
    }

    .opening::before {
        font-size: 8rem;
        bottom: 5%;
    }

    .about::before {
        font-size: 7rem;
    }
}

@media (max-width: 480px) {
    .opening {
        padding-bottom: 4rem;
        min-height: 85vh;
    }

    .opening-name {
        font-size: 2.6rem;
    }
}
