:root {
    --bg: #faf7f3;
    --alt: #efe8df;
    --ink: #241f1c;
    --muted: #6a6059;
    --accent: #5a1a14;
    --line: rgba(36, 31, 28, .18);
    --band: #4a130e;
    --band-ink: #f6ede4;
    --olive: #4d4a30;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
    --ease: cubic-bezier(.22, .8, .2, 1);
}

[data-theme="dark"] {
    --bg: #171413;
    --alt: #201b19;
    --ink: #ece4db;
    --muted: #b0a69b;
    --accent: #e7b9a8;
    --line: rgba(236, 228, 219, .2);
    --band: #2e0d0a
}

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

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    transition: background .4s, color .4s;
    overflow-x: hidden
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit
}

:focus-visible {
    outline: 2px solid #d98a72;
    outline-offset: 3px
}

.skip {
    position: fixed;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: #fff;
    color: #000;
    padding: .6rem 1rem;
    border-radius: 6px;
    transition: top .2s
}

.skip:focus {
    top: 1rem
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15
}

/* layout */
.sec {
    padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 3rem)
}

.alt {
    background: var(--alt)
}

.band {
    background: var(--band);
    color: var(--band-ink)
}

.dark {
    background: #1d1917;
    color: #ece4db
}

.wrap {
    max-width: 1140px;
    margin: 0 auto
}

.narrow {
    max-width: 760px
}

.split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start
}

.sticky {
    position: sticky;
    top: 7rem
}

.h {
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    color: var(--accent);
    font-weight: 400
}

.band .h,
.dark .h {
    color: inherit
}

.center {
    text-align: center;
    margin-bottom: 3.5rem
}

.hair {
    display: block;
    width: 64px;
    height: 1px;
    background: currentColor;
    opacity: .5;
    margin: 1.6rem 0;
    transform-origin: left
}

.lead {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    line-height: 1.5;
    margin-bottom: 1.2rem
}

.muted {
    color: var(--muted)
}

.dark .muted,
.band .muted {
    color: inherit;
    opacity: .75
}

/* header */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem clamp(1rem, 4vw, 3rem);
    background: var(--accent);
    color: #fff;
    transition: transform 0.4s var(--ease), background-color 0.4s;
}

.topbar.hide {
    transform: translateY(-100%);
}

[data-theme="dark"] .topbar {
    background: #000;
}

.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--serif);
    font-size: 1.25rem
}

.logo em {
    font-weight: 400
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: #5a1a14;
    color: #f6ede4;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .3)
}

.nav {
    display: flex;
    gap: 1.7rem;
    font-size: .9rem
}

.nav a {
    position: relative;
    padding: .3rem 0
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease)
}

.nav a:hover::after,
.nav a:focus-visible::after {
    transform: scaleX(1)
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer
}

.menu-btn span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #fff;
    transition: .3s
}

.menu-btn span:first-child {
    top: 18px
}

.menu-btn span:last-child {
    top: 26px
}

.menu-btn[aria-expanded=true] span:first-child {
    top: 22px;
    transform: rotate(45deg)
}

.menu-btn[aria-expanded=true] span:last-child {
    top: 22px;
    transform: rotate(-45deg)
}

.btn {
    display: inline-block;
    padding: .85rem 2.1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #e4d9cc;
    color: #4a130e;
    font-weight: 500;
    cursor: pointer;
    transition: transform .3s var(--ease), background .3s
}

.btn:hover {
    transform: translateY(-2px);
    background: #fff
}

/* hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 580px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff
}

.parallax-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -15%;
    height: 130%;
    will-change: transform;
    background: linear-gradient(to bottom, rgba(74, 19, 14, 1), rgba(30, 10, 8, 1));
}

.hero-person {
    position: absolute;
    right: clamp(1rem, 8vw, 9rem);
    bottom: 0;
    height: 88%;
    aspect-ratio: 2/3;
    will-change: transform
}

.hero-person img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom
}

.hero-content {
    position: relative;
    padding: 0 clamp(1.5rem, 8vw, 7rem);
    max-width: 780px;
    will-change: transform
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 500;
    margin-bottom: 1.4rem
}

.ln {
    display: block;
    overflow: hidden;
    padding-bottom: .1em
}

.ln>span {
    display: block;
    animation: lift 1.1s var(--ease) both
}

.ln:nth-child(2)>span {
    animation-delay: .15s
}

.hero p {
    max-width: 480px;
    margin-bottom: 2rem;
    color: #eadfd5;
    animation: fade 1s .6s both
}

.hero .btn {
    animation: fade 1s .8s both
}

@keyframes lift {
    from {
        transform: translateY(105%)
    }

    to {
        transform: none
    }
}

@keyframes fade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* scroll reveals: each type has its own motion */
.js [data-reveal] {
    --d: 0s;
    transition: opacity 1s var(--ease) var(--d), transform 1s var(--ease) var(--d), clip-path 1.1s var(--ease) var(--d)
}

.js [data-reveal=up] {
    opacity: 0;
    transform: translateY(26px)
}

.js [data-reveal=mask] span {
    clip-path: inset(0 100% 0 0);
    display: block;
    padding-bottom: .15em;
    transition: clip-path 1.1s var(--ease) var(--d);
}

.js [data-reveal=line] {
    transform: scaleX(0)
}

.js [data-reveal=curtain] .ph {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.1s var(--ease) var(--d);
}

.js [data-reveal].in {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0)
}

.js [data-reveal=mask].in span {
    clip-path: inset(0 -2% -10% 0)
}

.js [data-reveal=curtain].in .ph {
    clip-path: inset(0 0 0 0);
}

.js [data-reveal=curtain] img {
    transform: scale(1.25);
    transition: transform 1.6s var(--ease) var(--d)
}

.js [data-reveal=curtain].in img {
    transform: none
}

/* stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem
}

.stats>div {
    border-top: 1px solid var(--line);
    padding-top: 1rem
}

.stats dt {
    font-size: .82rem;
    color: var(--muted)
}

.stats dd {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent);
    line-height: 1.2
}

.stats b {
    font-weight: 500
}

/* accordion (services + faq) */
.acc {
    border-top: 1px solid var(--line)
}

.item {
    border-bottom: 1px solid var(--line)
}

.item h3 {
    font-size: 1.35rem
}

.item button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 0;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: color .25s
}

.item button:hover {
    color: var(--accent)
}

.item i {
    position: relative;
    flex: none;
    width: 16px;
    height: 16px
}

.item i::before,
.item i::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 7px;
    height: 1.5px;
    background: currentColor;
    transition: transform .4s var(--ease)
}

.item i::after {
    transform: rotate(90deg)
}

.item.open i::after {
    transform: rotate(0)
}

.panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .5s var(--ease), visibility .5s
}

.panel>p {
    overflow: hidden;
    color: var(--muted)
}

.item.open .panel {
    grid-template-rows: 1fr;
    visibility: visible
}

.item.open .panel>p {
    padding-bottom: 1.4rem
}

/* process */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: s
}

.steps li {
    border-top: 1px solid var(--line);
    padding-top: 1.4rem
}

.n {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-family: var(--serif);
    margin-bottom: 1.1rem
}

.steps h3 {
    font-size: 1.25rem;
    margin-bottom: .4rem
}

.steps p {
    color: var(--muted);
    font-size: .93rem
}

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

.ph {
    overflow: hidden;
    background: var(--line)
}

.ph img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: grayscale(.7);
    transition: filter .5s, transform 1.2s var(--ease)
}

figure:hover .ph img {
    filter: none
}

figcaption {
    padding-top: 1rem
}

figcaption h3 {
    font-size: 1.25rem
}

figcaption span {
    font-size: .88rem;
    color: var(--muted)
}

/* testimonials */
.slider {
    display: grid;
    text-align: center
}

blockquote {
    grid-area: 1/1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s, visibility .7s
}

blockquote.active {
    opacity: 1;
    visibility: visible
}

blockquote p {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    line-height: 1.5
}

cite {
    display: block;
    margin-top: 1.4rem;
    font-style: normal;
    opacity: .75;
    font-size: .95rem
}

.ctrl {
    display: flex;
    justify-content: center;
    gap: .8rem;
    margin-top: 2.5rem
}

.ctrl button {
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: background .25s, color .25s
}

.ctrl button:hover {
    background: var(--band-ink);
    color: var(--band)
}

/* contact */
address {
    display: grid;
    gap: .3rem;
    font-style: normal;
    margin-top: 2rem;
    opacity: .85
}

address a:hover {
    text-decoration: underline
}

form {
    display: grid;
    gap: 1.4rem
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem
}

.f {
    display: grid;
    gap: .3rem
}

label {
    font-size: .82rem;
    opacity: .8
}

input,
select,
textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(236, 228, 219, .35);
    padding: .6rem 0;
    resize: vertical;
    border-radius: 0
}

select option {
    color: #000
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: #e7b9a8;
    box-shadow: 0 1px 0 #e7b9a8
}

[aria-invalid=true] {
    border-color: #ff9d8c
}

small {
    min-height: 1.2em;
    font-size: .8rem;
    color: #ffb3a5
}

form .btn {
    justify-self: start
}

.form-msg {
    font-size: .92rem;
    color: #e7b9a8;
    min-height: 1.4em
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--olive);
    color: #eee;
    padding: 1.1rem clamp(1rem, 5vw, 3rem);
    font-size: .8rem
}

/* dock */
.dock {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .8rem
}

.indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: .35rem .5rem;
    background: rgba(30, 20, 18, .78);
    backdrop-filter: blur(8px);
    border-radius: 14px
}

.indicator a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .3rem .2rem;
    font-size: .72rem;
    color: #eadfd5;
    opacity: .7
}

.indicator i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #eadfd5;
    transition: .3s
}

.indicator span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width .35s
}

.indicator a.on {
    opacity: 1
}

.indicator a.on i {
    background: #e7b9a8;
    border-color: #e7b9a8;
    transform: scale(1.3)
}

.indicator:hover span,
.indicator:focus-within span,
.indicator a.on span {
    max-width: 120px
}

.theme-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: #5a1a14;
    color: #f6ede4;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3)
}

.theme-toggle svg {
    grid-area: 1/1;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    transition: .35s
}

.theme-toggle .moon {
    opacity: 0;
    transform: rotate(-60deg)
}

[data-theme="dark"] .theme-toggle .sun {
    opacity: 0;
    transform: rotate(60deg)
}

[data-theme="dark"] .theme-toggle .moon {
    opacity: 1;
    transform: none
}

@media(max-width:860px) {
    .menu-btn {
        display: block
    }

    .nav {
        position: fixed;
        inset: 0 0 auto 0;
        flex-direction: column;
        gap: 1.2rem;
        padding: 5rem 2rem 2rem;
        background: rgba(40, 12, 8, .97);
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform .4s var(--ease), visibility .4s;
        z-index: -1
    }

    .nav.open {
        transform: none;
        visibility: visible
    }

    .split {
        grid-template-columns: 1fr
    }

    .sticky {
        position: static
    }

    .steps {
        grid-template-columns: 1fr 1fr
    }

    .hero-person {
        height: 42%;
        left: 0;
        right: 0;
        margin: 0 auto;
        opacity: .9
    }

    .hero-content {
        margin-top: -28vh;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media(max-width:520px) {

    .row,
    .steps,
    .stats {
        grid-template-columns: 1fr
    }

    .footer {
        justify-content: center;
        text-align: center
    }

    .indicator span {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }

    html {
        scroll-behavior: auto
    }

    .js [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important
    }
}