/* ─────────────────────────────────────────────────────────────
   MichaelGIT.com — V5 (Both Mac Windows) implementation
   Palette: green + gold + cream paper. Pink-lake hero, ivy-courtyard divider.
   ───────────────────────────────────────────────────────────── */

:root {
    --bg: #fafaf7;
    --paper: #ffffff;
    --cream: #f6f1e6;
    --ink: #161814;
    --ink-soft: #3a3a36;
    --ink-mute: #6c6960;
    --green: #2c5f3f;
    --green-dk: #1e4530;
    --green-deepest: #0f2318;
    --gold: #c8a96e;
    --gold-dk: #a78947;
    --gold-lt: #e8d4a3;
    --rule: rgba(28, 28, 28, 0.12);

    --sans: Montserrat, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Skip link — visually hidden until focused, then drops down with a gold tab */
.skip-link {
    position: absolute;
    top: -56px;
    left: 12px;
    z-index: 250;
    background: var(--gold);
    color: var(--green-deepest);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 11px 18px;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 2px solid var(--green-deepest);
    outline-offset: 2px;
}
:focus-visible {
    /* Browser default focus ring is fine, but make it consistent on dark sections */
    outline-color: var(--gold-lt);
    outline-offset: 3px;
}
/* Sections / main get programmatic focus from the skip link — no outline */
main:focus, main:focus-visible,
section:focus, section:focus-visible { outline: none; }

/* ─── HERO ─── */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 640px;
    width: 100%;
    overflow: hidden;
    color: #fff;
}
.hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 78% 50%;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg,
        rgba(15, 30, 22, 0.35) 0%,
        rgba(15, 30, 22, 0.55) 60%,
        rgba(15, 30, 22, 0.78) 100%);
}
.hero-content {
    position: absolute; z-index: 2;
    left: 0; right: 0; bottom: 100px;
    padding: 0 56px;
    max-width: 1100px;
}
.hero-eyebrow {
    display: flex; align-items: center; gap: 14px;
    font-size: 13px; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold-lt);
    opacity: 0.92;
    margin-bottom: 24px;
}
.eyebrow-rule {
    display: inline-block;
    width: 28px; height: 1px;
    background: var(--gold-lt);
}
.hero-title {
    font-family: var(--sans);
    font-size: clamp(56px, 8vw, 104px);
    line-height: 1.0;
    margin: 0;
    font-weight: 700;
    letter-spacing: -2.2px;
}
.hero-tag {
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 22px);
    max-width: 620px;
    margin: 24px 0 14px;
    opacity: 0.95;
    line-height: 1.45;
}
.hero-loc {
    font-size: 14px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    opacity: 0.8; margin-bottom: 36px;
}
.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--green-deepest);
    font-size: 16px; font-weight: 700;
    letter-spacing: 0.8px; text-transform: uppercase;
    padding: 18px 36px;
    border-radius: 4px;
    transition: background 0.15s ease, transform 0.15s ease;
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); }

/* photo credits — clear of the nav bar (which sits at hero bottom 0–72) */
.credit {
    position: absolute;
    z-index: 3;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}
.credit-hero {
    bottom: 88px;
    right: 20px;
}
.credit-light {
    bottom: 16px;
    right: 20px;
}

/* ─── NAV ─── */
.nav {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 72px;
    z-index: 50;
    padding: 0 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    background: transparent;
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.nav[data-pinned="true"] {
    position: fixed;
    top: 0; bottom: auto;
    background: rgba(250, 250, 247, 0.96);
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 30px -12px rgba(0, 0, 0, 0.12);
    color: var(--green-deepest);
}

.wordmark {
    font-family: var(--sans);
    font-weight: 700; font-size: 17px;
    letter-spacing: 0.4px; line-height: 1;
    color: #fff;
    display: inline-flex; align-items: baseline;
}
.nav[data-pinned="true"] .wordmark { color: var(--green-deepest); }
.wm-it { color: var(--gold); }
.wm-com {
    opacity: 0.55;
    font-weight: 500;
}
.nav[data-pinned="true"] .wm-com { opacity: 0.45; }

.nav-right {
    display: flex; align-items: center; gap: 32px;
    font-size: 13px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
}
.nav-link {
    opacity: 0.92;
    transition: opacity 0.15s ease;
}
.nav-link:hover { opacity: 1; }
.nav[data-pinned="true"] .nav-link { opacity: 0.85; }
.nav[data-pinned="true"] .nav-link:hover { opacity: 1; }

.nav-cta {
    background: var(--gold);
    color: var(--green-deepest);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px;
    transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--gold-lt); }

/* ─── SHARED LAYOUT ─── */
.container {
    max-width: 1180px;
    margin: 0 auto;
}
.eyebrow {
    font-family: var(--sans);
    font-size: 12px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold-dk);
    margin-bottom: 18px;
}
.eyebrow-light { color: var(--gold-lt); }

.section-h {
    font-family: var(--sans);
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1.05;
    margin: 0 0 32px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--ink);
}
.section-h.light { color: #fff; }
.section-lead {
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
    max-width: 780px;
    margin: 0 0 56px;
    color: var(--ink-soft);
}

/* ─── ABOUT ─── */
.about {
    background: var(--cream);
    padding: 120px 56px;
}
.about-h {
    font-family: var(--serif);
    font-size: clamp(48px, 7vw, 76px);
    line-height: 1;
    margin: 0;
    font-weight: 400;
    letter-spacing: -2px;
    color: var(--green-deepest);
}
.about-h em {
    font-style: italic;
    color: var(--gold-dk);
}
.about-window {
    margin-top: 48px;
}

/* ─── MAC WINDOW CHROME ─── */
.mac-window {
    background: #ebe7df;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Origin used by the minimize/maximize warp animations below.
       will-change is scoped to the animation classes so idle windows
       (like the static About window) don't hold a permanent GPU layer. */
    transform-origin: var(--mox, 50%) bottom;
}

/* Windows-style pointer over the Windows-themed service window only.
   Mac and Linux windows keep the system default cursor. */
.win-window {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='26' viewBox='0 0 20 26'><path d='M3 2 L3 20 L7.4 16.4 L10 22.5 L12.5 21.4 L9.8 15.5 L15 15 Z' fill='white' stroke='%23222' stroke-width='0.9' stroke-linejoin='miter'/></svg>") 3 2, auto;
}
.mw-titlebar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #f3efe7, #e6e1d6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}
.mw-dots { display: flex; gap: 8px; }
.mw-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 0.5px solid rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: rgba(0, 0, 0, 0.55);
    cursor: default;
    transition: filter 0.15s ease;
}
.mw-dot::before {
    opacity: 0;
    transition: opacity 0.15s ease;
}
.mw-dots:hover .mw-dot::before,
.mw-dot:hover::before { opacity: 1; }

.mw-dot.dr { background: #ff6058; }
.mw-dot.dr::before { content: '\2715'; /* ✕ */ }
.mw-dot.dy { background: #ffbd2e; }
.mw-dot.dy::before { content: '\2212'; /* − */ }
.mw-dot.dg { background: #28c940; }
.mw-dot.dg::before { content: '\002B'; /* + */ }

/* Mac service window: red = close, yellow = minimize, green decorative */
.services .mw-dot.dr,
.services .mw-dot.dy { cursor: pointer; }
.services .mw-dot.dr:hover,
.services .mw-dot.dy:hover { filter: brightness(1.06); }
.mw-title {
    position: absolute; left: 50%;
    transform: translateX(-50%);
    font-size: 13px; font-weight: 600;
    color: rgba(0, 0, 0, 0.55);
}

/* ─── Windows-style window chrome ─── */
.win-window .mw-titlebar {
    background: linear-gradient(180deg, #f5f5f5, #ececec);
    border-bottom-color: #d4d4d4;
    padding: 8px 0 8px 14px;
    justify-content: space-between;
    gap: 0;
}
.win-window .mw-titlebar .mw-dots { display: none; }
.win-window .mw-title {
    position: static;
    transform: none;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.78);
    letter-spacing: 0.1px;
}
.win-window .mw-controls {
    display: inline-flex;
    margin-left: auto;
}
.win-window .ctrl {
    width: 44px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.7);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.win-window .ctrl:hover { background: rgba(0, 0, 0, 0.06); }
.win-window .ctrl.close:hover { background: #e81123; color: #fff; }

/* ─── Linux/GNOME-style window chrome ─── */
.nix-window .mw-titlebar {
    background: linear-gradient(180deg, #3a3a38, #2a2a28);
    border-bottom-color: #1d1d1c;
    padding: 11px 12px 11px 18px;
    justify-content: space-between;
}
.nix-window .mw-titlebar .mw-dots { display: none; }
.nix-window .mw-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.2px;
}
.nix-window .mw-controls-nix {
    margin-left: auto;
    display: inline-flex;
    gap: 6px;
}
.nix-window .mw-x,
.nix-window .mw-min {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.nix-window .mw-x:hover,
.nix-window .mw-min:hover { background: rgba(255, 255, 255, 0.14); }

.mw-addr {
    padding: 10px 16px;
    background: #f6f3ec;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex; align-items: center; gap: 10px;
}
.mw-arrows { display: flex; gap: 6px; }
.mw-arrow {
    width: 22px; height: 22px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; color: #888;
}
.mw-arrow.disabled { color: #bbb; }
.mw-url {
    flex: 1;
    background: #fff;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-soft);
    display: flex; align-items: center;
}
.mw-lock { color: var(--green); font-size: 10px; margin-right: 8px; }
.mw-proto { opacity: 0.85; }

.mw-body {
    background: #fdfcf8;
}

/* ─── ABOUT WINDOW INTERIOR ─── */
.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: stretch;
    padding: 48px 56px;
}
.about-photo-wrap {
    position: relative;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}
.about-photo-wrap:hover { transform: translateY(-2px); }

/* The <picture> wrapper needs to be the flex item that stretches; otherwise
   the inner <img> only gets its intrinsic size and the photo collapses. */
.about-photo-wrap picture {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 41% 20%;
    border-radius: 2px;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.04),
        0 12px 28px rgba(15, 35, 25, 0.18),
        inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.4s ease;
}
.about-photo-wrap:hover .about-photo {
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.04),
        0 18px 40px rgba(15, 35, 25, 0.24),
        inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Mono caption underneath the photo, sized to match its width */
.about-photo-credit {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ink-mute);
    text-align: right;
    font-weight: 500;
}
.about-body {
    font-family: var(--serif);
}
.about-lede {
    font-size: 24px;
    line-height: 1.5;
    margin: 0 0 24px;
    color: var(--ink);
}
.dropcap {
    float: left;
    font-size: 78px;
    line-height: 0.78;
    font-weight: 700;
    color: var(--gold-dk);
    margin-right: 8px;
    margin-top: 6px;
    font-family: var(--serif);
}
.about-p {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 18px;
    color: var(--ink-soft);
}
.about-p:last-child { margin-bottom: 0; }

.about-stats {
    margin-top: 28px;
    padding-top: 22px;
    margin-bottom: 0;
    border-top: 1px solid var(--rule);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    font-family: var(--sans);
}
.stat-v {
    font-size: 17px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 4px;
}
.stat-l {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 600;
}

/* ─── DIVIDER ─── */
.divider {
    position: relative;
    height: 480px;
    overflow: hidden;
}
.divider img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.divider-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(20, 40, 28, 0.55), rgba(20, 40, 28, 0.3));
}
.divider-quote {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 0 56px;
    font-family: var(--serif);
    font-style: italic;
    color: #fff;
    font-size: clamp(24px, 3.5vw, 38px);
    line-height: 1.3;
    max-width: 880px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ─── SERVICES ─── */
.services {
    background: var(--cream);
    padding: 120px 56px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 56px;
    align-items: start;
}
.service-body {
    padding: 28px 28px 28px;
}
.svc-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--gold-dk);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.svc-h {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
    color: var(--green);
    line-height: 1.2;
}
.svc-p {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
}

/* Window minimize/restore — warps toward (and back from) the dock icon.
   will-change is applied here only (not on the base .mac-window) so the
   GPU layer is created right before the animation fires and released
   when the class is removed. */
.mac-window.is-hidden { display: none; }
.mac-window.is-minimizing,
.mac-window.is-opening,
.mac-window.is-closing-fast {
    will-change: transform, opacity, clip-path;
}
.mac-window.is-minimizing {
    animation: minimizeToDock 0.5s cubic-bezier(0.4, 0, 0.7, 1) forwards;
    pointer-events: none;
}
.mac-window.is-opening {
    animation: maximizeFromDock 0.42s cubic-bezier(0.25, 0.6, 0.35, 1) backwards;
}
.mac-window.is-closing-fast {
    animation: closeFast 0.18s ease forwards;
    pointer-events: none;
}
@keyframes closeFast {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.92); }
}
/* Smooth 2-stop minimize: linearly interpolated transform + a single warp
   waypoint via clip-path so the bottom necks down naturally. */
@keyframes minimizeToDock {
    0% {
        transform: translate(0, 0) scale(1);
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
        opacity: 1;
    }
    100% {
        transform: translate(var(--mdx, 0px), var(--mdy, 0px)) scale(0.04);
        clip-path: polygon(42% 0%, 58% 0%, 54% 100%, 46% 100%);
        opacity: 0;
    }
}
@keyframes maximizeFromDock {
    0% {
        transform: translate(var(--mdx, 0px), var(--mdy, 0px)) scale(0.04);
        clip-path: polygon(42% 0%, 58% 0%, 54% 100%, 46% 100%);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0) scale(1);
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Window minimize/close/open: instant cross-fade instead of warp */
    .mac-window.is-minimizing,
    .mac-window.is-opening,
    .mac-window.is-closing-fast {
        animation-duration: 0.001s !important;
        animation-timing-function: linear !important;
    }
    /* Disable hover-lift micro-animations */
    .dock-app:hover,
    .dock-app:active,
    .about-photo-wrap:hover { transform: none; }
    .about-photo-wrap:hover .about-photo,
    .about-photo { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(15, 35, 25, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
    /* Smooth scroll → instant */
    html { scroll-behavior: auto; }
}

/* Dock — sits below the service windows */
.dock {
    margin: 56px auto 0;
    width: fit-content;
    max-width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 12px 18px;
    background: rgba(15, 35, 25, 0.78);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-radius: 20px;
    box-shadow:
        0 20px 50px -18px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.dock-app {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px 4px 14px;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}
.dock-app:hover { transform: translateY(-10px) scale(1.08); }
.dock-app:active { transform: translateY(-6px) scale(1.04); }
.dock-app:focus-visible {
    outline: 2px solid var(--gold-lt);
    outline-offset: 4px;
    border-radius: 12px;
}

.dock-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    border-radius: 13px;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.dock-win .dock-icon { background: linear-gradient(160deg, #6aa8ec, #2367b7); }
.dock-mac .dock-icon { background: linear-gradient(160deg, #f7f6f1, #c8c4ba); }
.dock-nix .dock-icon { background: linear-gradient(160deg, #5a5a55, #2a2a26); color: #fff; }

/* Tooltip / label below icon, only shown on hover */
.dock-tip {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 7px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    position: absolute;
    top: -28px;
    white-space: nowrap;
    pointer-events: none;
}
.dock-app:hover .dock-tip { opacity: 1; transform: translateY(0); }

/* "App is open" indicator dot below the icon */
.dock-app::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.dock-app.is-open::after { opacity: 1; }

/* ─── PAST WORK ─── */
.past-work {
    background: var(--green-deepest);
    color: #f6f3ec;
    padding: 120px 56px;
}
.past-work .container { max-width: 1100px; }
.work-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
}
.work-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 32px;
    align-items: baseline;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.work-item.last { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.work-yr {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold-lt);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}
.work-desc strong {
    display: block;
    font-family: var(--sans);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: -0.3px;
}
.work-desc span {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.55;
    color: rgba(246, 243, 236, 0.85);
}
.work-tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gold-lt);
    font-weight: 600;
}

/* ─── CONTACT ─── */
.contact {
    background: var(--cream);
    padding: 84px 56px;
    cursor: none;
}

/* Email-arrow custom cursor (scoped to #contact) */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 200;
    font-size: 54px;
    line-height: 1;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.15s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    will-change: transform, left, top, opacity;
    /* Bypass Montserrat (which lacks the ➜ dingbat) so Safari/Chrome agree.
       Explicit symbol-bearing system fonts + text-presentation glyph. */
    font-family: -apple-system, BlinkMacSystemFont, "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", system-ui, sans-serif;
    font-variant-emoji: text;
}
.contact .container { max-width: 720px; text-align: center; }
.contact-lead {
    font-family: var(--serif);
    font-size: 19px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 560px;
    margin: 0 auto 48px;
}

/* Vertical-stack contact card (gold-rule rows + dark CTA bar) */
.vs-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    text-align: left;
    cursor: default;
    /* Layered depth: inset highlight → hairline → close contact → ambient */
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      0 1px 0 rgba(20, 30, 22, 0.05),
      0 2px 4px rgba(20, 30, 22, 0.06),
      0 8px 16px -4px rgba(20, 30, 22, 0.08),
      0 18px 36px -10px rgba(20, 30, 22, 0.14),
      0 40px 80px -30px rgba(20, 30, 22, 0.28);
}
.contact .vs-card a,
.contact .vs-card button { cursor: pointer; }
.vs-row {
    background: var(--paper);
    padding: 28px 36px;
    display: grid;
    grid-template-columns: 28px 110px 1fr auto;
    gap: 18px;
    align-items: center;
    border-top: 1px solid var(--rule);
    position: relative;
}
.vs-row:first-child { border-top: 0; }
.vs-row::before {
    content: "";
    position: absolute;
    top: 0; left: 36px; right: 36px; height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
    opacity: 0.3;
}
.vs-row:first-child::before { display: none; }
.vs-icon {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(200, 169, 110, 0.15);
    border-radius: 50%;
    font-size: 14px;
    color: var(--gold-dk);
}
.vs-key {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 600;
}
.vs-val {
    font-family: var(--serif);
    font-size: 21px;
    color: var(--ink);
    line-height: 1.3;
    word-break: break-word;
}
.vs-val a, .vs-val button {
    color: var(--green-dk); text-decoration: none;
    background: none; border: 0; padding: 0;
    font: inherit;
    border-bottom: 1px solid rgba(46, 95, 63, 0.3);
    text-align: left;
    transition: color 0.15s, border-color 0.15s;
}
.vs-val a:hover, .vs-val button:hover {
    color: var(--gold-dk);
    border-color: rgba(167, 137, 71, 0.5);
}
.vs-action {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-lt);
    text-decoration: none;
    background: var(--green-deepest);
    border: 1px solid var(--green-deepest);
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow:
      0 2px 0 rgba(0, 0, 0, 0.06),
      0 6px 14px -4px rgba(15, 35, 24, 0.3);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.vs-action:hover {
    transform: translateY(-1px);
    background: var(--ink);
    box-shadow:
      0 3px 0 rgba(0, 0, 0, 0.08),
      0 10px 22px -6px rgba(15, 35, 24, 0.4);
}
.vs-action .arr {
    font-size: 13px;
    line-height: 1;
    color: var(--gold);
    transition: transform 0.15s;
}
.vs-action:hover .arr { transform: translateX(2px); }

/* Dark green CTA bar at the bottom of the card */
.vs-foot {
    background: var(--green-deepest);
    color: var(--gold-lt);
    padding: 24px 36px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
    box-shadow: inset 0 0 0 1px rgba(232, 212, 163, 0.18);
}
.vs-foot-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: rgba(232, 212, 163, 0.85);
}
.vs-foot-cta {
    background: var(--gold);
    color: var(--green-deepest);
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.vs-foot-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(200, 169, 110, 0.3);
}

/* ─── FOOTER ─── */
footer {
    background: var(--green-deepest);
    color: rgba(255, 255, 255, 0.55);
    padding: 32px 56px;
    text-align: center;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
    .nav { padding: 0 24px; }
    .nav-right { gap: 18px; font-size: 12px; letter-spacing: 1.2px; }
    .hero-content { padding: 0 24px; bottom: 90px; }

    .about, .services, .past-work, .contact { padding: 80px 24px; }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 28px;
    }
    .about-photo { aspect-ratio: 4/3; max-height: 460px; }
    .about-stats { grid-template-columns: 1fr; gap: 16px; }
    .services-grid { grid-template-columns: 1fr; gap: 24px; }
    .service-body { min-height: 0; padding: 26px 26px 28px; }
    .work-item { grid-template-columns: 1fr; gap: 6px; }
    .work-tag { margin-top: 4px; }
    .vs-row {
        grid-template-columns: 28px 1fr;
        grid-template-rows: auto auto auto;
        column-gap: 14px; row-gap: 6px;
        padding: 22px 24px;
    }
    .vs-icon { grid-row: 1 / span 2; align-self: start; margin-top: 4px; }
    .vs-key { grid-column: 2; }
    .vs-val { grid-column: 2; font-size: 18px; }
    .vs-action { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
    .vs-row::before { left: 24px; right: 24px; }
    .vs-foot { padding: 20px 24px; }
    .divider { height: 360px; }
    .credit-hero { bottom: 88px; }
}

@media (max-width: 640px) {
    .nav { padding: 0 18px; }
    .nav-link { display: none; }
    .nav-right { gap: 12px; }
    .nav-cta { padding: 9px 14px; font-size: 11px; letter-spacing: 1.2px; }
    .wordmark { font-size: 15px; }

    /* hero stays full-viewport, just scale type/spacing for narrow */
    .hero-content { padding: 0 20px; bottom: 100px; }
    .hero-img { object-position: 70% 50%; }
    .hero-eyebrow { font-size: 11px; letter-spacing: 2px; gap: 10px; margin-bottom: 16px; }
    .eyebrow-rule { width: 20px; }
    .hero-title { font-size: 48px; letter-spacing: -1.4px; line-height: 1.04; }
    .hero-tag { font-size: 17px; margin: 18px 0 12px; }
    .hero-loc { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 26px; }
    .btn-gold { padding: 14px 26px; font-size: 14px; }
    .credit-hero { bottom: 84px; right: 14px; font-size: 9px; letter-spacing: 1.5px; }

    .about, .services, .past-work, .contact { padding: 64px 18px; }
    .about-h { font-size: 44px; letter-spacing: -1.4px; }
    .about-window { margin-top: 32px; }
    .about-grid { padding: 22px 20px; gap: 22px; }
    .about-lede { font-size: 19px; margin: 24px 0 18px; }
    .dropcap { font-size: 56px; line-height: 0.78; margin-top: 4px; margin-right: 6px; }
    .about-p { font-size: 16px; line-height: 1.65; }
    .stat-v { font-size: 16px; }
    .stat-l { font-size: 11px; letter-spacing: 1.2px; }

    .section-h { font-size: 36px; letter-spacing: -0.6px; }
    .section-lead { font-size: 17px; margin-bottom: 36px; }
    .svc-h { font-size: 20px; }
    .svc-p { font-size: 15px; }

    .work-list { margin-top: 28px; }
    .work-item { padding: 24px 0; }
    .work-yr { font-size: 22px; }
    .work-desc strong { font-size: 20px; }
    .work-desc span { font-size: 16px; line-height: 1.55; }

    .contact-lead { font-size: 18px; margin-bottom: 26px; }

    .divider { height: 280px; }
    .divider-quote { font-size: 22px; line-height: 1.35; padding: 0 24px; }

    footer { padding: 24px 16px; font-size: 12px; }
}
