:root {
    --bg: #f3efe7;
    --paper: #fffcf7;
    --ink: #161412;
    --muted: #5e584f;
    --line: rgba(22, 20, 18, 0.1);
    --gold: #c6a15b;
    --gold-2: #f0ddb0;
    --gold-ink: #6d5316;
    --black: #0c0c0d;
    --header-h: 108px;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: Outfit, "Segoe UI", sans-serif;
    --shadow: 0 10px 30px rgba(20, 16, 10, 0.05);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    overflow-wrap: break-word;
}

a { color: inherit; }

::selection { background: #e7d3a1; color: #1a1408; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 80;
    background: #fff;
    color: var(--ink);
    padding: 0.6rem 1rem;
    border-radius: 8px;
}

.skip:focus { top: 1rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: min(1120px, calc(100% - 2.4rem));
    margin-inline: auto;
}

.texture {
    background-color: var(--black);
    background-image:
        radial-gradient(ellipse 70% 55% at 85% 15%, rgba(212, 175, 99, 0.18), transparent 55%),
        radial-gradient(ellipse 40% 40% at 10% 90%, rgba(212, 175, 99, 0.08), transparent 50%),
        linear-gradient(30deg, rgba(255, 255, 255, 0.025) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.025) 87.5%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.025) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.025) 87.5%);
    background-size: auto, auto, 14px 24px, 14px 24px;
    color: #f6f1e6;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    color: var(--gold-ink);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.eyebrow i {
    width: 0.45rem;
    height: 0.45rem;
    background: var(--gold);
    transform: rotate(45deg);
}

.texture .eyebrow { color: var(--gold-2); }

.lede {
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.12rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: inset 0 -1px 0 rgba(198, 161, 91, 0.35);
}

.topbar {
    max-height: 46px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: max-height 0.25s ease, border-color 0.25s ease;
}

.is-scrolled .topbar {
    max-height: 0;
    border-bottom-color: transparent;
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    align-items: center;
    min-height: 40px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar a {
    color: rgba(246, 241, 230, 0.82);
    text-decoration: none;
}

.topbar a:hover { color: var(--gold-2); }

.topbar-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-link {
    position: relative;
    padding: 0.3rem 0;
    color: rgba(246, 241, 230, 0.82);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--gold-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] { color: #fff; }

.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(240, 221, 176, 0.7);
    border-radius: 2px;
    background: transparent;
    color: #f0ddb0;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-cta:hover { background: rgba(240, 221, 176, 0.12); }
.nav-cta[aria-current="page"] { background: rgba(240, 221, 176, 0.16); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(240, 221, 176, 0.55);
    border-radius: 2px;
    background: transparent;
    color: #f4efe6;
    font: inherit;
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.75rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 2px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
    background: linear-gradient(180deg, #edd9a8, #c6a15b);
    color: #1a1408;
}

.btn-ghost {
    background: transparent;
    border-color: rgba(240, 221, 176, 0.45);
    color: #f6f1e6;
}

.btn-ghost:hover { background: rgba(240, 221, 176, 0.08); }

.btn-wa {
    align-self: flex-start;
    margin-top: auto;
    background: #10241c;
    border-color: #1d4d38;
    color: #e9f7ef;
}

.btn-wa:hover { background: #163528; }

.wa-icon { width: 18px; height: 18px; color: #3ddc84; flex: none; }

.legtec-hero {
    --px: 0;
    --py: 0;
    position: relative;
    isolation: isolate;
    min-height: min(920px, calc(100vh - var(--header-h) + 1.5rem));
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 4.2rem 0 7.2rem;
    background: #090909;
    color: #f7f3ea;
}

.legtec-hero-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.legtec-hero-field {
    position: absolute;
    top: -8%;
    bottom: -8%;
    width: 62%;
    overflow: hidden;
    transition: transform 0.6s ease;
}

.legtec-hero-tech {
    left: -4%;
    transform: translate3d(calc(var(--px) * -18px), calc(var(--py) * -10px), 0);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 46%, transparent 82%);
    mask-image: linear-gradient(90deg, #000 0%, #000 46%, transparent 82%);
}

.legtec-hero-tech::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(198, 161, 91, 0.55);
    box-shadow:
        80px 120px 0 rgba(198, 161, 91, 0.35),
        180px 260px 0 rgba(247, 243, 234, 0.2),
        40px 420px 0 rgba(198, 161, 91, 0.28),
        240px 90px 0 rgba(247, 243, 234, 0.16),
        140px 520px 0 rgba(198, 161, 91, 0.22);
    animation: hero-float 26s ease-in-out infinite alternate;
}

.legtec-hero-law {
    right: -6%;
    transform: translate3d(calc(var(--px) * 16px), calc(var(--py) * 10px), 0);
    -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 42%, transparent 80%);
    mask-image: linear-gradient(270deg, #000 0%, #000 42%, transparent 80%);
}

.legtec-hero-stream {
    display: grid;
    gap: 0;
    animation: hero-drift 70s linear infinite;
}

.legtec-hero-stream pre,
.legtec-hero-papers pre {
    margin: 0;
    font-family: "Consolas", "Courier New", monospace;
    white-space: pre-wrap;
}

.legtec-hero-stream pre {
    color: rgba(214, 216, 220, 0.62);
    font-size: 0.84rem;
    line-height: 1.75;
    letter-spacing: 0.01em;
    filter: blur(1.5px);
    opacity: 0.72;
}

.legtec-hero-lines {
    position: absolute;
    inset: 12% 18% auto auto;
    width: 42%;
    height: 55%;
    background:
        linear-gradient(rgba(198, 161, 91, 0.28), rgba(198, 161, 91, 0.28)) 0 20% / 100% 1px no-repeat,
        linear-gradient(rgba(198, 161, 91, 0.16), rgba(198, 161, 91, 0.16)) 0 48% / 72% 1px no-repeat,
        linear-gradient(rgba(198, 161, 91, 0.2), rgba(198, 161, 91, 0.2)) 12% 74% / 80% 1px no-repeat;
    opacity: 0.45;
    filter: blur(0.4px);
}

.legtec-hero-papers {
    display: grid;
    justify-items: end;
    gap: 1.2rem;
    padding: 8% 6% 0 18%;
    animation: hero-float 22s ease-in-out infinite alternate;
}

.legtec-hero-papers article {
    width: min(100%, 300px);
    padding: 1.3rem 1.2rem 1.5rem;
    background: rgba(246, 241, 230, 0.05);
    border: 1px solid rgba(231, 211, 161, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transform: rotate(-2.5deg);
    filter: blur(2px);
    opacity: 0.72;
}

.legtec-hero-papers article:nth-child(2) { transform: rotate(1.6deg); width: min(100%, 300px); }
.legtec-hero-papers article:nth-child(3) { transform: rotate(-1deg); width: min(100%, 320px); }

.legtec-hero-papers pre {
    color: rgba(231, 214, 186, 0.55);
    font-family: var(--serif);
    font-size: 0.98rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.legtec-hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 42% 62% at 24% 52%, rgba(9, 9, 9, 0.72), transparent 72%),
        linear-gradient(90deg, rgba(9, 9, 9, 0.28) 0%, rgba(9, 9, 9, 0.18) 32%, rgba(9, 9, 9, 0.08) 58%, rgba(9, 9, 9, 0.22) 100%);
}

.legtec-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
    align-items: center;
    gap: 1.5rem;
}

.legtec-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: none;
}

.legtec-hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -12% -8% -14% -16%;
    background: radial-gradient(ellipse at 32% 46%, rgba(9, 9, 9, 0.78), rgba(9, 9, 9, 0.28) 58%, transparent 78%);
    pointer-events: none;
}

.legtec-hero-copy > * {
    animation: hero-in 0.9s ease both;
}

.legtec-hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.legtec-hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.legtec-hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.legtec-hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

.legtec-hero h1 {
    margin: 0;
    color: #f7f3ea;
    font-size: clamp(3.2rem, 5.4vw, 6.2rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 0.9;
    white-space: nowrap;
}

.legtec-hero-areas {
    margin: 1rem 0 0;
    color: #c6a15b;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.legtec-hero-statement {
    margin: 1.15rem 0 0;
    color: #f7f3ea;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.15;
}

.legtec-hero-lead {
    max-width: 34rem;
    margin: 1.1rem 0 0;
    color: rgba(247, 243, 234, 0.78);
    font-size: 1.05rem;
    overflow-wrap: break-word;
}

.legtec-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.legtec-hero-portrait {
    position: relative;
    margin: 0;
    min-height: min(62vh, 560px);
    align-self: stretch;
}

.legtec-hero-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.35));
}

.hero-door {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-width: 210px;
    min-height: 52px;
    padding: 0.8rem 1.3rem;
    border: 1px solid #c6a15b;
    color: #f7f3ea;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-door svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.hero-door-legal { background: transparent; }

.hero-door-legal:hover {
    background: rgba(198, 161, 91, 0.14);
    transform: translateY(-2px);
}

.hero-door-tech {
    background: #c6a15b;
    color: #14110c;
}

.hero-door-tech:hover {
    background: #d7b56d;
    transform: translateY(-2px);
}

@keyframes hero-drift {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes hero-float {
    from { transform: translateY(0); }
    to { transform: translateY(-22px); }
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.band {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    margin-top: -4.2rem;
}

.band-card,
.card,
.contact-card,
.contact-form,
.faq {
    background: var(--paper);
    border: 1px solid rgba(22, 20, 18, 0.08);
    border-radius: 2px;
    box-shadow: var(--shadow);
}

.band .band-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.3rem;
    align-content: start;
    overflow: hidden;
    padding: 2rem 2rem 1.8rem;
    border-radius: 18px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 22px 50px rgba(12, 12, 13, 0.12);
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.band .band-card::after {
    content: "";
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.band-icon {
    grid-row: span 3;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #111;
    color: var(--gold-2);
    transition: background 0.35s ease, color 0.35s ease;
}

.band-icon svg { width: 30px; height: 30px; }

.band-card h2 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.9rem, 2.6vw, 2.4rem);
    line-height: 1.05;
}

.band-card p { color: var(--muted); transition: color 0.35s ease; }

.band-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.5rem;
    color: var(--gold-ink);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.35s ease, gap 0.35s ease;
}

.band .band-card:hover,
.band .band-card:focus-visible {
    background: #111;
    color: #f7f3ea;
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(12, 12, 13, 0.28);
}

.band .band-card:hover::after,
.band .band-card:focus-visible::after { transform: scaleX(1); }

.band-card:hover .band-icon,
.band-card:focus-visible .band-icon {
    background: var(--gold);
    color: #14110c;
}

.band-card:hover p,
.band-card:focus-visible p { color: rgba(247, 243, 234, 0.72); }

.band-card:hover .band-link,
.band-card:focus-visible .band-link {
    gap: 0.9rem;
    color: var(--gold-2);
}

.section { padding: 5.2rem 0; }

.section-paper { background: rgba(255, 252, 247, 0.55); }

.section-legal {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.section-legal > .container {
    position: relative;
    z-index: 1;
}

.section-legal .section-head { max-width: none; }

.section-legal .section-head h2 { white-space: nowrap; }

.section-legal-justice {
    position: absolute;
    z-index: 0;
    top: 0.5rem;
    right: max(-2rem, calc(50% - 40rem));
    width: min(32vw, 430px);
    height: auto;
    opacity: 0.22;
    filter: grayscale(1) invert(1) sepia(0.35);
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 45%, #000 40%, transparent 78%);
    mask-image: radial-gradient(ellipse 58% 62% at 50% 45%, #000 40%, transparent 78%);
    pointer-events: none;
    animation: justice-float 14s ease-in-out infinite alternate;
}

.section-tech {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.section-tech > .container {
    position: relative;
    z-index: 1;
}

.section-tech-computer {
    position: absolute;
    z-index: 0;
    top: 0;
    right: max(-3rem, calc(50% - 42rem));
    width: min(36vw, 480px);
    height: auto;
    opacity: 0.2;
    filter: grayscale(1) invert(1) sepia(0.3);
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 55% 45%, #000 35%, transparent 76%);
    mask-image: radial-gradient(ellipse 60% 55% at 55% 45%, #000 35%, transparent 76%);
    pointer-events: none;
    animation: justice-float 16s ease-in-out infinite alternate;
}

@keyframes justice-float {
    from { transform: translateY(0); }
    to { transform: translateY(-16px); }
}

.eyebrow-strong {
    color: #8a6420;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.26em;
}

.eyebrow-strong i {
    width: 0.55rem;
    height: 0.55rem;
}

.section-head {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 2rem;
    max-width: 40rem;
}

.section-head h2,
.cta h2,
.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 500;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    padding: 1.45rem 1.3rem 1.2rem;
    border-radius: 18px;
    background: #f8f5ef;
    scroll-margin-top: calc(var(--header-h) + 4.6rem);
    transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.card::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #c6a15b;
}

.card-open {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    width: 100%;
    min-height: 230px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.card-watermark {
    position: absolute;
    top: 1rem;
    right: 0.85rem;
    width: 92px;
    height: 92px;
    color: rgba(176, 137, 72, 0.16);
    pointer-events: none;
}

.card-watermark svg { width: 100%; height: 100%; }

.svc-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 1px solid rgba(176, 137, 72, 0.55);
    border-radius: 50%;
    background: #fff;
    color: #b08948;
}

.svc-icon svg { width: 28px; height: 28px; }

.card:hover,
.card:focus-within {
    background: #111111;
    border-color: #111111;
    color: #f6f1e6;
    transform: translateY(-4px);
}

.card:hover h3,
.card:focus-within h3 {
    color: #f7f3ea;
}

.card:hover .card-summary,
.card:focus-within .card-summary {
    color: rgba(246, 241, 230, 0.72);
}

.card:hover .card-more,
.card:focus-within .card-more,
.card:hover .svc-icon,
.card:focus-within .svc-icon {
    color: #e7d3a1;
}

.card:hover .svc-icon,
.card:focus-within .svc-icon {
    background: transparent;
    border-color: rgba(231, 211, 161, 0.55);
}

.card:hover .card-watermark,
.card:focus-within .card-watermark { color: rgba(231, 211, 161, 0.14); }

.card:hover::after,
.card:focus-within::after { background: #e7d3a1; }

.card:hover .card-phone,
.card:focus-within .card-phone { color: rgba(246, 241, 230, 0.68) !important; }

.card:hover .btn-wa,
.card:focus-within .btn-wa {
    background: linear-gradient(180deg, #edd9a8, #c6a15b);
    border-color: transparent;
    color: #1a1408;
}

.card:hover .btn-wa .wa-icon,
.card:focus-within .btn-wa .wa-icon { color: #1a1408; }

.card h3 {
    margin-bottom: 0;
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.card p,
.card-summary { margin-bottom: 0; color: var(--muted); }

.card-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.55;
}

.card-more {
    margin-top: auto;
    color: #b08948;
    font-size: 0.95rem;
    font-weight: 500;
}

.card-phone {
    font-size: 0.84rem !important;
}

.text-link {
    color: var(--gold-ink);
    font-weight: 550;
    text-underline-offset: 0.22em;
}

.service-hero { padding: 3.4rem 0 3rem; }

.service-hero-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.service-detail { padding-top: 4rem; }

.service-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.6rem;
    align-items: start;
}

.service-figure {
    margin: 0 0 2rem;
    overflow: hidden;
    border-radius: 18px;
    background: #1a1714;
    box-shadow: var(--shadow);
}

.service-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.service-main h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
}

.service-main .lede { margin-bottom: 1.4rem; }

.service-copy { color: var(--muted); }
.service-copy strong { color: var(--ink); font-weight: 550; }
.service-copy ul,
.service-copy ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.service-copy li { margin-bottom: 0.35rem; }

.service-main .btn-consult { width: auto; margin-top: 0.8rem; }
.service-main .card-phone { margin-top: 0.7rem; color: var(--muted); }

.service-sidebar { display: grid; gap: 1.4rem; }

.service-widget-title {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.1;
}

.service-menu,
.service-quick {
    padding: 1.5rem 1.4rem;
    border: 1px solid rgba(22, 20, 18, 0.08);
    border-radius: 18px;
    background: var(--paper);
}

.service-menu ul,
.service-contact ul {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-menu ul { gap: 0.4rem; }

.service-menu a {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.service-menu-arrow {
    color: var(--gold-ink);
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.service-menu a:hover { border-color: var(--gold); background: rgba(198, 161, 91, 0.08); }
.service-menu a:hover .service-menu-arrow { transform: translateX(3px); }

.service-menu .is-active a {
    border-color: var(--black);
    background: var(--black);
    color: #f6f1e6;
}

.service-menu .is-active .service-menu-arrow { color: var(--gold); }

.service-contact {
    padding: 1.5rem 1.4rem;
    border-radius: 18px;
}

.service-contact ul { gap: 1rem; }

.service-contact .place-label {
    display: block;
    margin: 0 0 0.2rem;
    color: var(--gold-2);
}

.service-contact a,
.service-contact li > span:last-child {
    color: #f6f1e6;
    font-family: var(--serif);
    font-size: 1.3rem;
    line-height: 1.25;
    text-decoration: none;
}

.service-contact a:hover { color: var(--gold-2); }

.service-quick { display: grid; gap: 0.85rem; }
.service-quick .service-widget-title { margin-bottom: 0.2rem; }
.service-quick .optional { color: var(--muted); font-weight: 400; }
.service-quick .btn-consult { margin-top: 0.2rem; }
.service-quick .wa-icon { color: #1a1408; }

.btn-consult {
    width: 100%;
    margin-top: 0.4rem;
    background: linear-gradient(180deg, #edd9a8, #c6a15b);
    color: #1a1408;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cta {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
    padding: 3.2rem 0;
}

.cta .hero-actions { margin-top: 0; }

.page-hero { padding: 4.2rem 0 3.4rem; }

.page-hero h1 { margin-bottom: 0.9rem; }

.crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(246, 241, 230, 0.62);
    font-size: 0.88rem;
}

.crumb a { color: var(--gold-2); text-decoration: none; }

.page-hero-duo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: clamp(260px, 34vw, 380px);
    padding: 4rem 0;
    background: #0b0b0b;
    color: #f6f1e6;
    text-align: center;
}

.page-hero-duo-scene {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.page-hero-duo-layer {
    position: absolute;
    top: -12%;
    height: 124%;
    width: 62%;
    object-fit: cover;
    filter: blur(7px) saturate(0.7);
    user-select: none;
}

.page-hero-duo-code {
    left: -4%;
    object-position: 55% 38%;
    opacity: 0.4;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 100%);
}

.page-hero-duo-justice {
    right: -4%;
    object-position: center 22%;
    opacity: 0.44;
    -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 35%, transparent 100%);
    mask-image: linear-gradient(270deg, #000 0%, #000 35%, transparent 100%);
}

.page-hero-duo-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 46% 70% at 50% 50%, rgba(11, 11, 11, 0.72), rgba(11, 11, 11, 0.28) 70%, transparent 100%),
        linear-gradient(180deg, rgba(11, 11, 11, 0.55) 0%, transparent 30%, transparent 70%, rgba(11, 11, 11, 0.7) 100%);
}

.page-hero-legal-justice {
    left: 50%;
    width: 64%;
    transform: translateX(-38%);
    object-position: center 26%;
    filter: blur(4px) saturate(0.85) brightness(1.08);
    opacity: 0.68;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
}

.page-hero-legal .page-hero-duo-shade {
    background:
        radial-gradient(ellipse 34% 42% at 50% 50%, rgba(11, 11, 11, 0.5), transparent 100%),
        linear-gradient(180deg, rgba(11, 11, 11, 0.5) 0%, transparent 32%, transparent 68%, rgba(11, 11, 11, 0.72) 100%);
}

.page-hero-tech-code {
    left: 50%;
    width: 72%;
    transform: translateX(-50%);
    object-position: center 44%;
    filter: blur(4px) saturate(0.9) brightness(1.5);
    opacity: 0.72;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
}

.page-hero-tech .page-hero-duo-shade {
    background:
        radial-gradient(ellipse 34% 42% at 50% 50%, rgba(11, 11, 11, 0.5), transparent 100%),
        linear-gradient(180deg, rgba(11, 11, 11, 0.5) 0%, transparent 32%, transparent 68%, rgba(11, 11, 11, 0.72) 100%);
}

.page-hero-duo h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.page-hero-duo h1::after {
    content: "";
    display: block;
    width: 3.2rem;
    height: 1px;
    margin: 1.1rem auto 0;
    background: var(--gold);
    opacity: 0.8;
}

.about-intro { padding: clamp(4rem, 8vw, 6.4rem) 0 clamp(2.8rem, 5vw, 4rem); }

.about-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.about-intro-mark {
    display: grid;
    gap: 0.9rem;
    padding-top: 0.4rem;
}

.about-intro-figure {
    color: var(--gold-ink);
    font-family: var(--serif);
    font-size: clamp(5rem, 10vw, 8.4rem);
    font-weight: 500;
    line-height: 0.82;
    letter-spacing: -0.03em;
}

.about-intro-caption {
    max-width: 12rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(198, 161, 91, 0.55);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.6;
    text-transform: uppercase;
}

.about-intro-copy h2 {
    max-width: 16ch;
    margin-bottom: 1.4rem;
    font-size: clamp(2.3rem, 4.6vw, 3.8rem);
}

.about-intro-copy h2 em {
    color: var(--gold-ink);
    font-style: italic;
}

.about-intro-copy p:not(.eyebrow) {
    max-width: 40rem;
    color: var(--muted);
    font-size: 1.08rem;
    font-weight: 300;
    line-height: 1.8;
}

.about-intro-copy p:last-child { margin-bottom: 0; }

.about-pillars { padding: clamp(1.4rem, 3vw, 2.4rem) 0 clamp(4.4rem, 8vw, 6.4rem); }

.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4.4rem);
}

.about-pillar,
.about-value {
    position: relative;
    padding-top: 2rem;
    border-top: 1px solid rgba(22, 20, 18, 0.14);
}

.about-pillar::before,
.about-value::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 3.2rem;
    height: 2px;
    background: var(--gold);
}

.about-icon {
    display: inline-grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    margin-bottom: 1.3rem;
    border: 1px solid rgba(198, 161, 91, 0.55);
    border-radius: 50%;
    color: var(--gold-ink);
    background: rgba(198, 161, 91, 0.08);
}

.about-icon svg { width: 1.55rem; height: 1.55rem; }

.about-icon-sm {
    width: 2.9rem;
    height: 2.9rem;
    margin-bottom: 1.1rem;
}

.about-icon-sm svg { width: 1.35rem; height: 1.35rem; }

.about-pillar h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.1rem, 3.2vw, 2.7rem);
}

.about-pillar p {
    max-width: 34rem;
    margin: 0 0 0.9rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.8;
}

.about-pillar p:last-child { margin-bottom: 0; }

.about-values-block { margin-top: clamp(3.4rem, 7vw, 5.2rem); }

.about-values-head { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }

.about-values-head h2 {
    margin: 0;
    font-size: clamp(2.1rem, 3.2vw, 2.7rem);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.6rem, 4vw, 3rem);
}

.about-value h3 {
    margin: 0 0 0.5rem;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.2;
}

.about-value p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 300;
    line-height: 1.75;
}

.about-team {
    padding: clamp(4.4rem, 8vw, 6.4rem) 0 clamp(4.8rem, 9vw, 7rem);
    background: #f8f5ef;
    border-top: 1px solid var(--line);
}

.about-team-head {
    display: grid;
    justify-items: center;
    margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
    text-align: center;
}

.about-team-head h2 {
    margin: 0;
    text-wrap: balance;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.8rem, 5vw, 4rem);
    max-width: 920px;
    margin-inline: auto;
}

.about-person { margin: 0; }

.about-person-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    background: #d8d5d0;
    box-shadow:
        0 0 0 1px rgba(198, 161, 91, 0.4),
        0 34px 60px -34px rgba(20, 16, 10, 0.45);
}

.about-person-frame::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    pointer-events: none;
}

.about-person-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    transition: transform 0.9s ease;
}

.about-person:hover .about-person-frame img { transform: scale(1.025); }

.about-person figcaption {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    padding: 1.6rem 0.5rem 0;
    text-align: center;
}

.about-person-name {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
}

.about-person-role {
    color: var(--muted);
    font-size: 0.98rem;
}

.about-person-credential {
    margin-top: 0.35rem;
    padding: 0.28rem 0.9rem;
    border: 1px solid rgba(198, 161, 91, 0.55);
    border-radius: 999px;
    color: var(--gold-ink);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
}

.about-motto {
    min-height: clamp(300px, 34vw, 440px);
    padding: 5rem 0;
    border-top: 1px solid rgba(198, 161, 91, 0.28);
}

.about-motto .page-hero-duo-code {
    opacity: 0.34;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 40%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 40%, transparent 100%);
}

.about-motto .page-hero-duo-justice {
    opacity: 0.38;
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 22%, #000 40%, transparent 100%);
    mask-image: linear-gradient(270deg, transparent 0%, #000 22%, #000 40%, transparent 100%);
}

.about-motto-text {
    margin: 0 auto;
    color: #f6f1e6;
    font-family: var(--serif);
    font-size: clamp(2.3rem, 5.4vw, 4.4rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0.005em;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.7);
    text-wrap: balance;
}

.about-motto-text::before,
.about-motto-text::after {
    content: "";
    display: block;
    width: 3.2rem;
    height: 1px;
    margin: 0 auto 1.6rem;
    background: var(--gold);
    opacity: 0.8;
}

.about-motto-text::after { margin: 1.6rem auto 0; }

.subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    background: rgba(243, 239, 231, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.subnav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 0;
}

.subnav a {
    flex: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.84rem;
    text-decoration: none;
    white-space: nowrap;
}

.subnav a:hover { border-color: var(--gold); }

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.2rem;
    align-items: start;
}

.contact-card,
.contact-form,
.faq { padding: 1.4rem; }

.contact-stack { display: grid; gap: 1rem; }

.contact-card h2 {
    margin-bottom: 0.45rem;
    font-size: 2.1rem;
}

.contact-card p { color: var(--muted); }

.place-label {
    margin: 1rem 0 0.15rem;
    color: var(--gold-ink);
    font-size: 0.76rem;
    font-weight: 550;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.place-value {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.55rem;
    line-height: 1.25;
}

.contact-card .text-link { display: inline-block; margin-top: 0.45rem; }

.socials {
    display: flex;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.socials a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #f6f1e6;
}

.socials a:hover { background: var(--gold); color: #1a1408; }

.socials svg { width: 16px; height: 16px; }

.contact-card a.phone {
    display: inline-block;
    margin: 0.2rem 0 0.9rem;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.8rem;
    text-decoration: none;
}

.form-grid { display: grid; gap: 0.95rem; }

label {
    display: block;
    font-size: 0.92rem;
    font-weight: 550;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(22, 20, 18, 0.14);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea { resize: vertical; }

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.faq-list { display: grid; gap: 0.7rem; margin-top: 1rem; }

.faq { padding: 0.2rem 1.1rem; }

.faq summary {
    padding: 0.95rem 0;
    cursor: pointer;
    font-weight: 550;
}

.faq p { margin-top: 0; color: var(--muted); }

.site-footer {
    padding: 0;
    background: #121212;
}

.footer-panel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 2.8rem 0 1.4rem;
    border-radius: 42px 42px 0 0;
    background: #121212;
    color: #f6f1e6;
}

.footer-scene {
    position: absolute;
    top: 0;
    height: 100%;
    width: min(46%, 520px);
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.footer-scene-code {
    left: 0;
    object-position: 62% center;
    opacity: 0.72;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 28%, transparent 92%);
    mask-image: linear-gradient(90deg, #000 0%, #000 28%, transparent 92%);
}

.footer-scene-justice {
    right: 0;
    object-position: center 18%;
    opacity: 0.78;
    -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 34%, transparent 92%);
    mask-image: linear-gradient(270deg, #000 0%, #000 34%, transparent 92%);
}

.footer-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 18, 18, 0.78) 0%, rgba(18, 18, 18, 0.62) 22%, rgba(18, 18, 18, 0.5) 48%, rgba(18, 18, 18, 0.28) 100%);
    pointer-events: none;
}

.footer-grid,
.footer-base,
.to-top { position: relative; z-index: 1; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.68fr 2.1fr 1fr;
    gap: 1.8rem 1.6rem;
}

.footer-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 1.6rem;
}

.footer-services li {
    position: relative;
    padding-left: 1rem;
}

.footer-services li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0.1rem;
    width: 5px;
    height: 5px;
    background: #c6a15b;
    transform: rotate(45deg);
}

.brand-footer img {
    width: 78px;
    height: 78px;
}

.footer-brand p {
    max-width: 18rem;
    margin: 0.85rem 0 0;
}

.site-footer p,
.site-footer li { color: rgba(246, 241, 230, 0.78); }

.footer-title {
    margin-bottom: 0.95rem;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li { margin-top: 0.48rem; }

.site-footer a { color: rgba(246, 241, 230, 0.86); text-decoration: none; }

.site-footer a:hover { color: var(--gold-2); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    flex: none;
    color: var(--gold);
}

.footer-base {
    margin-top: 1.8rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-base p { margin: 0; }

.to-top {
    position: absolute;
    right: 1.25rem;
    bottom: 4.4rem;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(198, 161, 91, 0.85);
    border-radius: 50%;
    color: var(--gold-2);
    background: rgba(18, 18, 18, 0.35);
}

.to-top:hover { background: var(--gold); color: #1a1408; }

.to-top svg { width: 20px; height: 20px; }

.float,
.float-direct {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
}

.float { display: grid; justify-items: end; }

.float-panel {
    display: none;
    margin-bottom: 0.65rem;
    padding: 0.4rem;
    min-width: 250px;
    background: var(--paper);
    border-radius: 2px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.float.is-open .float-panel { display: grid; }

.float-panel a {
    padding: 0.7rem 0.8rem;
    border-radius: 2px;
    color: var(--ink);
    text-decoration: none;
}

.float-panel a:hover { background: #f3efe7; }

.float-toggle,
.float-direct {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 999px;
    background: #10241c;
    color: #f3fff7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    text-decoration: none;
}

.float-toggle {
    width: 58px;
    height: 58px;
    justify-content: center;
}

.float-direct { padding: 0.8rem 1rem 0.8rem 0.85rem; }

.float-toggle .wa-icon,
.float-direct .wa-icon { width: 26px; height: 26px; }

.reveal.is-in { transform: none; }

.testimonial-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
}

.testimonial {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.3rem;
    margin: 0;
    padding: 2rem 1.8rem 1.6rem;
    border: 1px solid rgba(22, 20, 18, 0.08);
    border-radius: 18px;
    background: #f8f5ef;
    box-shadow: var(--shadow);
}

.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 0.6rem;
    right: 1.3rem;
    color: rgba(198, 161, 91, 0.35);
    font-family: var(--serif);
    font-size: 5rem;
    line-height: 1;
    pointer-events: none;
}

.testimonial blockquote { margin: 0; }

.testimonial blockquote p {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.testimonial figcaption {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gold-ink);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.testimonial figcaption::before {
    content: "";
    width: 1.8rem;
    height: 1px;
    background: var(--gold);
}

.projects { scroll-margin-top: calc(var(--header-h) + 0.6rem); }

.project-catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #f8f5ef;
    transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.project-card::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #c6a15b;
}

.project-card-open {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.project-card-media {
    margin: 0;
    overflow: hidden;
    background: #f7f4ee;
}

.project-card-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.project-card-media.is-empty {
    display: grid;
    aspect-ratio: 16 / 10;
    place-items: center;
    background: linear-gradient(160deg, #1b1a18, #2a241c);
    color: rgba(231, 211, 161, 0.85);
    font-family: var(--serif);
    font-size: 2.6rem;
    letter-spacing: 0.04em;
}

.project-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 1.15rem 1.2rem 1.35rem;
}

.project-card h3 {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.project-card .card-summary { margin: 0; }

.project-card .card-more { margin-top: auto; }

.project-card:hover,
.project-card:focus-within {
    background: #111111;
    color: #f6f1e6;
    transform: translateY(-4px);
}

.project-card:hover h3,
.project-card:focus-within h3 { color: #f7f3ea; }

.project-card:hover .card-summary,
.project-card:focus-within .card-summary { color: rgba(246, 241, 230, 0.72); }

.project-card:hover .card-more,
.project-card:focus-within .card-more,
.project-card:hover .project-num,
.project-card:focus-within .project-num { color: #e7d3a1; }

.project-card:hover::after,
.project-card:focus-within::after { background: #e7d3a1; }

.project-gallery {
    display: grid;
    gap: 0.75rem;
}

.project-stage {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(22, 20, 18, 0.08);
    border-radius: 18px;
    background: #1b1a18;
    box-shadow: var(--shadow);
}

.project-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-thumbs a {
    display: block;
    width: 68px;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    opacity: 0.62;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.project-thumbs a:hover,
.project-thumbs a[aria-current="true"] { opacity: 1; border-color: var(--gold); }

.project-thumbs a[aria-current="true"] { box-shadow: 0 0 0 1px var(--gold); }

.project-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-num {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    color: var(--gold-ink);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
}

.project-num::after {
    content: "";
    width: 1.8rem;
    height: 1px;
    background: var(--gold);
}

.project-card .project-num { margin-bottom: 0; }

.project-page-gallery { margin-bottom: 1.8rem; }

.project-page-gallery .project-stage {
    aspect-ratio: auto;
    background: #f7f4ee;
}

.project-page-gallery .project-stage img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.project-gallery-label {
    margin: 0.35rem 0 0;
    color: var(--gold-ink);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.project-page-gallery .project-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.project-page-gallery .project-thumbs a {
    width: auto;
    height: auto;
    aspect-ratio: auto;
    background: #f7f4ee;
}

.project-page-gallery .project-thumbs img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.project-catalog-back {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gold-ink);
    font-size: 0.92rem;
    font-weight: 550;
    text-underline-offset: 0.18em;
}

.project-demo-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border: 1px solid rgba(198, 161, 91, 0.55);
    color: var(--gold-ink);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-card:hover .project-demo-chip,
.project-card:focus-within .project-demo-chip {
    border-color: rgba(231, 211, 161, 0.7);
    color: #e7d3a1;
}

.project-demo {
    margin: 1.6rem 0 1.5rem;
    padding: 1.35rem 1.3rem 1.45rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.project-demo h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.project-demo .lede { margin-bottom: 1rem; }

.project-demo-actions { margin: 0 0 0.7rem; }

.project-demo-actions .btn { width: auto; }

.project-demo-url {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.project-demo-url a {
    color: var(--gold-ink);
    text-underline-offset: 0.18em;
}

.project-demo-creds {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.project-demo-creds div { display: grid; gap: 0.28rem; }

.project-demo-creds dt {
    margin: 0;
    color: var(--gold-ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-demo-creds dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}

.project-demo-creds code {
    padding: 0.45rem 0.7rem;
    background: #f7f4ee;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.project-demo-copy {
    min-height: 36px;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--gold-ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.project-demo-copy:hover { border-color: var(--gold); }

.service-copy p { margin: 0 0 1rem; }
.service-copy a { color: var(--gold-ink); text-underline-offset: 0.18em; }

@media (max-width: 980px) {
    .band,
    .cards,
    .project-catalog,
    .contact-layout,
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-areas { grid-column: 1 / -1; }
    .service-detail-grid { grid-template-columns: 1fr; }
    .service-sidebar { grid-template-columns: 1fr 1fr; }
    .service-sidebar .service-quick { grid-column: 1 / -1; }
    .cta { flex-direction: column; align-items: start; }
    .page-hero-duo-layer { width: 68%; }
    .about-intro-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .about-intro-mark { grid-template-columns: auto 1fr; align-items: end; gap: 1.4rem; }
    .legtec-hero-shade {
        background:
            radial-gradient(ellipse 70% 68% at 28% 50%, rgba(9, 9, 9, 0.86), transparent 74%),
            linear-gradient(90deg, rgba(9, 9, 9, 0.35) 0%, rgba(9, 9, 9, 0.12) 70%, rgba(9, 9, 9, 0.2) 100%);
    }
    .legtec-hero-layout { grid-template-columns: 1fr; gap: 0.4rem; }
    .legtec-hero-portrait { order: -1; min-height: min(52vw, 340px); }
    .legtec-hero-copy { max-width: 40rem; }
    .legtec-hero-copy::before {
        inset: -8% -6% -10% -8%;
        background: radial-gradient(ellipse at 40% 45%, rgba(9, 9, 9, 0.9), rgba(9, 9, 9, 0.72) 62%, transparent 80%);
    }
}

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 1.3rem 1.3rem 2rem;
        background: rgba(12, 12, 13, 0.98);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        font-family: var(--serif);
        font-size: 2.2rem;
        letter-spacing: 0;
        text-transform: none;
    }

    .nav-cta { margin-top: 0.8rem; }
}

@media (max-width: 720px) {
    .band,
    .cards,
    .project-catalog,
    .contact-layout,
    .service-sidebar,
    .footer-grid { grid-template-columns: 1fr; }

    .cards { grid-template-columns: 1fr 1fr; }
    .testimonial-list { grid-template-columns: 1fr; }
    .testimonial { padding: 1.7rem 1.4rem 1.4rem; }
    .testimonial blockquote p { font-size: 1.2rem; }

    .topbar { max-height: 4.8rem; }
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.05rem;
        min-height: 3.2rem;
        padding-block: 0.35rem;
        font-size: 0.78rem;
    }
    .topbar-dot { display: none; }
    .nav-toggle { border-color: rgba(240, 221, 176, 0.7); }
    .page-hero h1 { font-size: 2.5rem; }
    .page-hero-duo { min-height: 220px; padding: 3rem 0; }
    .page-hero-duo h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
    .page-hero-duo-layer { width: 78%; filter: blur(5px) saturate(0.7); }
    .page-hero-duo-code { left: -18%; opacity: 0.34; }
    .page-hero-duo-justice { right: -18%; opacity: 0.3; }
    .page-hero-legal-justice { width: 110%; transform: translateX(-46%); filter: blur(3px) saturate(0.85); opacity: 0.55; }
    .page-hero-tech-code { width: 120%; transform: translateX(-50%); filter: blur(3px) saturate(0.9) brightness(1.65); opacity: 0.72; }
    .about-intro-mark { grid-template-columns: 1fr; gap: 0.9rem; }
    .about-pillars-grid,
    .about-values,
    .about-team-grid { grid-template-columns: 1fr; }
    .about-team-grid { max-width: 420px; gap: 3rem; }
    .about-motto { min-height: 260px; padding: 4rem 0; }
    .about-motto .page-hero-duo-code { opacity: 0.28; }
    .about-motto .page-hero-duo-justice { opacity: 0.26; }
    .nav-toggle { flex: none; }
    .footer-base { flex-direction: column; }
    .footer-areas { grid-template-columns: 1fr; }
    .footer-panel { padding-bottom: 5.5rem; }
    .footer-scene { width: 78%; height: 240px; }
    .footer-scene-justice { top: auto; bottom: 0; height: 300px; }
    .footer-panel::after {
        background: linear-gradient(180deg, rgba(18, 18, 18, 0.84) 0%, rgba(18, 18, 18, 0.62) 42%, rgba(18, 18, 18, 0.78) 100%);
    }
    .to-top { right: 0.9rem; bottom: 4.6rem; }
    .legtec-hero {
        min-height: 0;
        padding: 2.4rem 0 5.4rem;
    }
    .legtec-hero-field { width: 78%; filter: blur(0.4px); }
    .legtec-hero-shade {
        background:
            linear-gradient(180deg, rgba(9, 9, 9, 0.82) 0%, rgba(9, 9, 9, 0.88) 42%, rgba(9, 9, 9, 0.8) 100%);
    }
    .legtec-hero h1 { font-size: clamp(2.6rem, 13.5vw, 4rem); letter-spacing: 0.04em; }
    .legtec-hero-areas { letter-spacing: 0.18em; }
    .legtec-hero-portrait { min-height: min(70vw, 300px); }
    .legtec-hero-statement { font-size: 1.55rem; }
    .legtec-hero-actions { flex-direction: column; align-items: stretch; }
    .hero-door { width: 100%; }
    .band { margin-top: -2.2rem; }
    .section-legal .section-head h2 { font-size: clamp(1.7rem, 7.6vw, 2.4rem); }
    .section-legal-justice { top: 0; right: -3rem; width: 62vw; opacity: 0.14; }
    .section-tech-computer { top: 0; right: -4rem; width: 70vw; opacity: 0.13; }
    .band .band-card { grid-template-columns: 1fr; padding: 1.6rem 1.4rem 1.5rem; }
    .band-icon { grid-row: auto; width: 56px; height: 56px; margin-bottom: 1rem; }
    .subnav-row { flex-wrap: nowrap; overflow-x: auto; }
    .float-direct span { display: none; }
    .float-direct { width: 58px; height: 58px; justify-content: center; padding: 0; }
}

.assistant-launch,
.assistant-panel { z-index: 45; }

.assistant-launch {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 1.15rem 0.45rem 0.45rem;
    border: 1px solid rgba(240, 221, 176, 0.55);
    border-radius: 999px;
    background:
        radial-gradient(120px 40px at 10% 0%, rgba(240, 221, 176, 0.18), transparent 60%),
        linear-gradient(180deg, #242220, #0c0c0d);
    color: #f6f1e6;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), 0 0 0 6px rgba(198, 161, 91, 0.12);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.assistant-launch::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(198, 161, 91, 0.45);
    border-radius: inherit;
    animation: assistant-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

.assistant-launch-orb {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(160deg, #f0ddb0, #c6a15b 55%, #8d6a2d);
    color: #1a1408;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.assistant-launch-orb svg { width: 22px; height: 22px; }

.assistant-launch-copy {
    display: grid;
    line-height: 1.15;
    text-align: left;
}

.assistant-launch-copy small {
    color: var(--gold-2);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.assistant-launch:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36), 0 0 0 8px rgba(198, 161, 91, 0.16);
}

.assistant-panel {
    position: fixed;
    left: 1rem;
    bottom: 5.6rem;
    display: flex;
    flex-direction: column;
    width: min(420px, calc(100vw - 2rem));
    max-height: min(680px, calc(100vh - 7.4rem));
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(240, 221, 176, 0.28), transparent 90px),
        var(--paper);
    border: 1px solid rgba(198, 161, 91, 0.55);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(12, 12, 13, 0.38);
}

.assistant-panel[hidden],
.assistant-gate[hidden],
.assistant-chat[hidden],
.assistant-compose[hidden],
.assistant-error[hidden] { display: none !important; }

.assistant-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.9rem 0.95rem 1rem;
    background:
        radial-gradient(140px 80px at 0% 0%, rgba(198, 161, 91, 0.35), transparent 70%),
        linear-gradient(180deg, #1a1816, #0c0c0d);
    color: #f6f1e6;
}

.assistant-mark {
    display: grid;
    flex: none;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(160deg, #f0ddb0, #c6a15b 58%, #8d6a2d);
    color: #1a1408;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.assistant-kicker {
    margin: 0;
    color: var(--gold-2);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.assistant-head h2 {
    margin: 0.1rem 0 0;
    color: #fff;
    font-family: var(--serif);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1;
}

.assistant-close {
    display: grid;
    width: 36px;
    height: 36px;
    margin-left: auto;
    place-items: center;
    border: 1px solid rgba(240, 221, 176, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold-2);
    cursor: pointer;
}

.assistant-close:hover { background: rgba(240, 221, 176, 0.14); color: #fff; }

.assistant-close svg { width: 18px; height: 18px; }

.assistant-gate,
.assistant-chat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    padding: 1rem;
}

.assistant-lead {
    margin: 0;
    padding: 0.75rem 0.8rem;
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    background: rgba(198, 161, 91, 0.12);
    color: var(--ink);
    font-size: 0.92rem;
}

.assistant-check span {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.assistant-gate label,
.assistant-compose { display: grid; gap: 0.3rem; font-size: 0.88rem; font-weight: 600; }

.assistant-gate input[type="text"],
.assistant-gate input[type="tel"],
.assistant-compose textarea {
    width: 100%;
    padding: 0.75rem 0.8rem;
    border: 1px solid rgba(198, 161, 91, 0.35);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 400;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.assistant-gate input:focus,
.assistant-compose textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.2);
}

.assistant-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 400;
}

.assistant-check input { margin-top: 0.25rem; }

.assistant-gate button,
.assistant-compose button {
    justify-self: stretch;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #f0ddb0, #c6a15b 48%, #a6843e);
    color: #1a1408;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(141, 106, 45, 0.28);
}

.assistant-gate button:hover,
.assistant-compose button:hover { filter: brightness(1.05); }

.assistant-gate button:disabled,
.assistant-compose button:disabled { opacity: 0.6; cursor: wait; }

.assistant-error {
    margin: 0;
    color: #8d2b22;
    font-size: 0.88rem;
}

.assistant-chat { flex: 1; }

.assistant-log {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 180px;
    max-height: 320px;
    overflow: auto;
    padding-right: 0.15rem;
}

.assistant-msg {
    max-width: 88%;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 16px 16px 16px 5px;
    background: #fff;
    border: 1px solid rgba(198, 161, 91, 0.28);
    box-shadow: 0 8px 18px rgba(22, 20, 18, 0.05);
    white-space: pre-wrap;
}

.assistant-msg.is-user {
    align-self: flex-end;
    border: 0;
    border-radius: 16px 16px 5px 16px;
    background: linear-gradient(180deg, #2a261f, #0c0c0d);
    color: #f6f1e6;
    box-shadow: 0 10px 20px rgba(12, 12, 13, 0.18);
}

.assistant-typing { color: var(--gold-ink); font-style: italic; }

.assistant-compose textarea { resize: vertical; min-height: 64px; }

@keyframes assistant-pulse {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.08); }
}

@media (max-width: 720px) {
    .assistant-launch { left: 0.75rem; bottom: 0.75rem; padding-right: 0.9rem; }
    .assistant-launch-copy { font-size: 0.86rem; }
    .assistant-panel { left: 0.75rem; width: calc(100vw - 1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .card, .project-card, .project-card-media img, .topbar, .hero-door, .legtec-hero-field, .about-person-frame img { transition: none; }
    .project-card:hover .project-card-media img,
    .project-card:focus-within .project-card-media img,
    .project-card:hover,
    .project-card:focus-within { transform: none; }
    .about-person:hover .about-person-frame img { transform: none; }
    .legtec-hero-stream,
    .legtec-hero-papers,
    .legtec-hero-copy > *,
    .section-legal-justice,
    .section-tech-computer,
    .assistant-launch::after { animation: none; }
    .assistant-launch:hover { transform: none; }
}
