:root {
    --ink: #201b18;
    --muted: #695f57;
    --line: rgba(132, 72, 48, 0.18);
    --paper: #f8f1e6;
    --paper-2: #efe1cf;
    --cream: #fff8ec;
    --glass: rgba(255, 248, 236, 0.68);
    --brick: #b64e32;
    --brick-dark: #7f321f;
    --slate: #33464d;
    --garden: #2f684e;
    --gold: #b8873f;
    --shadow: 0 24px 80px rgba(72, 43, 28, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(182, 78, 50, 0.13), transparent 28rem),
        radial-gradient(circle at 88% 0%, rgba(47, 104, 78, 0.12), transparent 30rem),
        linear-gradient(180deg, var(--paper), #f3e6d6 54%, var(--paper));
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a { color: inherit; }

.site-header {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1120px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 248, 236, 0.52);
    border-radius: 999px;
    background: rgba(255, 248, 236, 0.6);
    box-shadow: 0 18px 48px rgba(56, 39, 29, 0.12);
    backdrop-filter: blur(20px) saturate(135%);
}

.brand, .site-nav, .hero-actions, .site-footer nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    text-decoration: none;
    font-weight: 750;
    white-space: nowrap;
}

.brand-name {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.34rem;
    line-height: 1;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brick), var(--brick-dark));
    color: #fff;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 0.96rem;
    box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 10px 24px rgba(127, 50, 31, 0.2);
}

.site-nav {
    gap: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 650;
}

.site-nav a, .site-footer a, .app-card { text-decoration: none; }

.site-nav a {
    padding: 9px 12px;
    border-radius: 999px;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.55);
    color: var(--ink);
}

.nav-cta {
    border: 1px solid rgba(182, 78, 50, 0.28);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.48);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    min-height: calc(100vh - 86px);
    gap: clamp(28px, 5vw, 74px);
    align-items: center;
    padding: clamp(62px, 8vw, 116px) clamp(18px, 5vw, 84px) 42px;
}

.hero h1, .section h2, .cta-band h2, .legal-page h1 {
    margin: 0;
    letter-spacing: 0;
    line-height: 0.95;
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
}

.hero h1 {
    max-width: 920px;
    font-size: clamp(3.8rem, 9vw, 9.2rem);
}

.lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--brick-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(32, 27, 24, 0.16);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 760;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    background: linear-gradient(135deg, var(--brick), var(--brick-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 42px rgba(127, 50, 31, 0.22);
}

.button.secondary {
    background: var(--glass);
    backdrop-filter: blur(14px);
}

.hero-panel {
    position: relative;
    min-height: 500px;
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(22px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid rgba(255, 248, 236, 0.52);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 248, 236, 0.9), rgba(255, 248, 236, 0.36)),
        repeating-linear-gradient(90deg, rgba(131, 51, 33, 0.12) 0 1px, transparent 1px 54px),
        linear-gradient(135deg, rgba(182, 78, 50, 0.22), rgba(47, 104, 78, 0.14));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(132%);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -14% -22% 30%;
    height: 220px;
    transform: rotate(-8deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.36), transparent);
}

.estate-line {
    position: relative;
    z-index: 1;
    color: var(--brick-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.orbit-card, .orbit-grid > div, .app-card, .service-list article, .faq-item {
    border: 1px solid rgba(255, 248, 236, 0.64);
    border-radius: 28px;
    background: var(--glass);
    box-shadow: 0 18px 48px rgba(72, 43, 28, 0.09);
    backdrop-filter: blur(18px) saturate(130%);
}

.main-card {
    position: relative;
    z-index: 1;
    padding: 28px;
}

.main-card span, .orbit-grid span, .status {
    color: var(--muted);
    font-size: 0.86rem;
}

.main-card strong {
    display: block;
    margin-top: 10px;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(2rem, 4.4vw, 3.7rem);
    font-weight: 400;
    line-height: 0.98;
}

.orbit-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.orbit-grid > div {
    min-height: 112px;
    padding: 18px;
}

.orbit-grid strong {
    display: block;
    margin-bottom: 22px;
    color: var(--brick);
}

.band, .section, .cta-band, .legal-page {
    padding: clamp(56px, 7vw, 98px) clamp(18px, 5vw, 84px);
}

.intro {
    background: linear-gradient(135deg, var(--slate), #253238);
    color: #fff;
}

.intro p {
    max-width: 1080px;
    margin: 0;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(2rem, 5vw, 4.8rem);
    line-height: 0.98;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.section h2, .cta-band h2, .legal-page h1 {
    font-size: clamp(2.45rem, 5vw, 5.3rem);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.app-card {
    min-height: 360px;
    padding: 24px;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.linked-card:hover {
    transform: translateY(-8px);
    border-color: rgba(182, 78, 50, 0.34);
    box-shadow: 0 30px 70px rgba(72, 43, 28, 0.15);
}

.app-card h3, .service-list h3 {
    margin: 18px 0 10px;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

.app-card p, .service-list p, .faq-item p, .legal-page p {
    color: var(--muted);
}

.app-icon-img {
    width: 88px;
    height: 88px;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: 0 16px 34px rgba(42, 28, 21, 0.16);
}

.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-top: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(182, 78, 50, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--brick-dark);
    font-size: 0.78rem;
    font-weight: 780;
    letter-spacing: 0.01em;
}

.mini-button.disabled {
    border-color: rgba(105, 95, 87, 0.18);
    background: rgba(105, 95, 87, 0.1);
    color: rgba(105, 95, 87, 0.76);
}

.placeholder-card {
    background: linear-gradient(135deg, rgba(255,248,236,0.82), rgba(239,225,207,0.68));
}

.split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
    background: rgba(255, 248, 236, 0.45);
}

.split > div > p {
    color: var(--muted);
    font-size: 1.12rem;
}

.service-list {
    display: grid;
    gap: 14px;
}

.service-list article {
    position: relative;
    padding: 24px;
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(182, 78, 50, 0.12);
    color: var(--brick-dark);
    font-size: 1rem;
    font-weight: 800;
}

.answers {
    background:
        linear-gradient(180deg, rgba(239, 225, 207, 0.78), rgba(248, 241, 230, 0.64));
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 980px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 22px 58px 22px 24px;
    cursor: pointer;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(182, 78, 50, 0.12);
    color: var(--brick-dark);
    font-family: Inter, sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item p {
    margin: -4px 0 0;
    max-width: 780px;
    padding: 0 24px 24px;
}

.cta-band {
    background: linear-gradient(135deg, var(--brick-dark), #5f2619);
    color: #fff;
}

.cta-band .eyebrow, .cta-band p { color: rgba(255,255,255,0.78); }

.cta-band h2 {
    max-width: 980px;
    margin-bottom: 28px;
}

.cta-band .button.primary {
    background: #fff;
    color: var(--brick-dark);
    border-color: #fff;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    margin: 22px auto;
    width: min(1120px, calc(100% - 32px));
    padding: 22px;
    border: 1px solid rgba(255, 248, 236, 0.58);
    border-radius: 28px;
    background: rgba(255, 248, 236, 0.58);
    box-shadow: 0 18px 48px rgba(56, 39, 29, 0.1);
    backdrop-filter: blur(18px) saturate(132%);
}

.footer-brand p {
    max-width: 520px;
    color: var(--muted);
}

.site-footer nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
    color: var(--muted);
    white-space: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.site-footer nav::-webkit-scrollbar { display: none; }

.legal-page {
    max-width: 880px;
    min-height: 70vh;
}

.legal-page h2 {
    margin: 34px 0 8px;
    font-size: 1.35rem;
}

.updated {
    margin-bottom: 32px;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .button, .app-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 860px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 28px;
    }
    .site-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .hero, .split {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: auto;
        padding-top: 46px;
    }
    .hero-panel {
        min-height: 360px;
    }
    .app-grid {
        grid-template-columns: 1fr;
    }
    .app-card {
        min-height: 280px;
    }
    .app-icon-img {
        width: 104px;
        height: 104px;
        border-radius: 28px;
    }
    .site-footer {
        flex-direction: column;
    }
    .site-footer nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
}
