/* ==========================================================
   Rodrigo Lopes Advocacia — Dossiê Patrimonial
   Aesthetic: editorial heritage volume × private wealth dossier
   Type: Fraunces (display, variable) · Spectral (body) · JetBrains Mono (labels)
   Palette: warm ink × parchment × aged brass × oxblood accent
   ========================================================== */

:root {
    /* ink tones */
    --ink: #0e0d0a;
    --ink-soft: #1a1814;
    --ink-line: #2a261d;

    /* paper tones (parchment) */
    --paper: #f1e7d0;
    --paper-soft: #f6edd9;
    --paper-bright: #faf3e3;
    --paper-cream: #ede2c6;

    /* metals & accents */
    --brass: #a07831;
    --brass-light: #c2954c;
    --brass-soft: #d9b876;
    --brass-deep: #6d4f1f;
    --oxblood: #5e1a1b;

    /* rules */
    --rule: rgba(14, 13, 10, 0.18);
    --rule-soft: rgba(14, 13, 10, 0.08);
    --rule-light: rgba(241, 231, 208, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--brass); color: var(--paper-bright); }

html { scroll-behavior: smooth; }

body {
    font-family: 'Spectral', 'Times New Roman', serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-feature-settings: "liga" 1, "kern" 1, "onum" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* paper grain — subtle SVG noise overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.45;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.34  0 0 0 0 0.27  0 0 0 0 0.15  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

/* ----------- TYPOGRAPHY PRIMITIVES ----------- */

.folio,
.ch-folio,
.cred-label,
.cl-label,
.lbl-num,
.cf-label,
.plate-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
}

.folio,
.ch-folio,
.cred-label,
.cl-label {
    color: var(--brass-deep);
    display: inline-block;
}

.ch-folio.dark { color: var(--brass-deep); }

h1, h2, h3 {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-weight: 380;
    font-variation-settings: "opsz" 144, "SOFT" 50;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--ink);
}

h1 em, h2 em, h3 em {
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    color: var(--brass-deep);
    font-weight: 380;
}

p { line-height: 1.7; }

.asterism {
    font-family: 'Fraunces', serif;
    color: var(--brass);
    font-size: 24px;
    margin: 22px auto;
    text-align: center;
    letter-spacing: 0.4em;
    opacity: 0.7;
}

/* ============ DOSSIER MARK (top bar) ============ */
.mark {
    background: var(--ink);
    color: var(--paper-soft);
    border-bottom: 1px solid var(--brass-deep);
}

.mark {
    position: sticky;
    top: 0;
    z-index: 60;
}

.mark-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.mark-brand {
    text-align: left;
    text-decoration: none;
    line-height: 1;
    color: inherit;
}

.mark-brand-name {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-variation-settings: "opsz" 144, "SOFT" 0, "wght" 420;
    font-style: normal;
    font-size: 21px;
    color: var(--paper-bright);
    letter-spacing: 0.22em;
    display: block;
    text-transform: uppercase;
}

.mark-brand-tag {
    font-family: 'Spectral', serif;
    font-size: 10px;
    letter-spacing: 0.52em;
    color: var(--brass-soft);
    margin-top: 7px;
    padding-left: 0.2em;
    display: block;
    text-transform: uppercase;
}

/* desktop inline nav */
.mark-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-left: auto;
    margin-right: 32px;
}

.mark-nav a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--brass-soft);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.25s;
}

.mark-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--brass);
    transition: width 0.3s;
}

.mark-nav a:hover { color: var(--paper-bright); }
.mark-nav a:hover::after { width: 100%; }

/* hamburger / menu toggle */
.mark-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid var(--brass-deep);
    color: var(--brass-soft);
    padding: 10px 16px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    transition: border-color 0.25s, color 0.25s;
}

.mark-toggle:hover { border-color: var(--brass); color: var(--paper-bright); }

.mark-toggle-bars { display: block; }

.mark-toggle .mark-toggle-bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
}

.mark-toggle .mark-toggle-bar + .mark-toggle-bar { margin-top: 5px; }

.mark-toggle-label { line-height: 1; }

/* ============ SLIDE-OUT MENU ============ */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 13, 10, 0.55);
    backdrop-filter: blur(2px);
    z-index: 70;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.menu-overlay.open { opacity: 1; }

.site-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 86vw);
    background: var(--ink);
    border-left: 1px solid var(--brass-deep);
    z-index: 80;
    padding: 32px 40px 40px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: -24px 0 60px rgba(14, 13, 10, 0.5);
}

.site-menu.open { transform: translateX(0); }

.site-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--ink-line);
}

.site-menu-brand {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "wght" 400;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 15px;
    color: var(--paper-bright);
}

.site-menu-brand em {
    font-style: normal;
    display: block;
    font-family: 'Spectral', serif;
    font-size: 9px;
    letter-spacing: 0.5em;
    color: var(--brass-soft);
    margin-top: 5px;
}

.site-menu-close {
    background: transparent;
    border: none;
    color: var(--brass-soft);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s, transform 0.3s;
}

.site-menu-close:hover { color: var(--paper-bright); transform: rotate(90deg); }

.site-menu-nav {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    flex: 1;
}

.menu-link {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--ink-line);
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 40, "wght" 380;
    font-size: 26px;
    color: var(--paper-cream);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.25s, padding-left 0.25s;
}

.menu-link:hover {
    color: var(--brass-light);
    padding-left: 8px;
}

.menu-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--brass-deep);
    flex-shrink: 0;
}

.site-menu-foot {
    padding-top: 26px;
    border-top: 1px solid var(--ink-line);
}

.site-menu-foot p {
    font-size: 13px;
    color: var(--paper-cream);
    line-height: 1.6;
    margin-top: 6px;
}

.site-menu-foot a {
    color: var(--brass-light);
    text-decoration: none;
    font-style: italic;
}

.site-menu-foot a:hover { color: var(--brass-soft); }

body.menu-open { overflow: hidden; }

/* ============ COVER ============ */
.cover {
    background:
        radial-gradient(circle at 88% -10%, rgba(193, 148, 75, 0.20) 0%, transparent 55%),
        radial-gradient(circle at -8% 105%, rgba(193, 148, 75, 0.10) 0%, transparent 60%),
        var(--paper);
    padding: 110px 36px 130px;
    position: relative;
    overflow: hidden;
}

.cover::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
}

.cover-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 80px;
    align-items: start;
}

.cover-text { padding-top: 24px; }

.folio { margin-bottom: 38px; }

.cover-title {
    font-size: clamp(56px, 9vw, 132px);
    font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 400;
    color: var(--ink);
    margin-bottom: 56px;
    letter-spacing: -0.035em;
    line-height: 0.96;
}

.cover-title .line {
    display: block;
    transform-origin: left;
    animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.cover-title .line:nth-child(1) { animation-delay: 0.05s; }
.cover-title .line:nth-child(2) { animation-delay: 0.18s; padding-left: 0.6em; }
.cover-title .line:nth-child(3) { animation-delay: 0.30s; padding-left: 0.2em; }
.cover-title .line:nth-child(4) { animation-delay: 0.42s; padding-left: 1.2em; }

.cover-title .ornament {
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    color: var(--brass-deep);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.cover-lede {
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 44px;
    animation: fade 1s ease 0.6s backwards;
}

.cover-lede strong {
    font-weight: 500;
    color: var(--brass-deep);
    font-variant: small-caps;
    letter-spacing: 0.04em;
    font-size: 0.96em;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cover-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 72px;
    animation: fade 1s ease 0.8s backwards;
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 0;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.1s;
    position: relative;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper-bright);
    border: 1px solid var(--ink);
}

.btn-primary:hover {
    background: var(--brass-deep);
    color: var(--paper-bright);
    border-color: var(--brass-deep);
}

.btn-primary .btn-arrow {
    transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--rule);
}

.btn-ghost:hover {
    border-color: var(--ink);
    background: rgba(14, 13, 10, 0.04);
}

.btn:active { transform: translateY(1px); }

/* cover foot stats */
.cover-foot {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--rule);
    animation: fade 1s ease 1s backwards;
}

.cover-foot > div {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.cf-num {
    font-family: 'Fraunces', serif;
    font-size: 52px;
    font-variation-settings: "opsz" 144, "SOFT" 50;
    color: var(--brass-deep);
    line-height: 1;
    font-weight: 380;
    font-feature-settings: "lnum" 1;
}

.cf-label {
    color: var(--ink-soft);
    line-height: 1.3;
}

/* cover aside (plate + margin note) */
.cover-aside {
    padding-top: 60px;
    animation: fade 1.2s ease 0.4s backwards;
}

.plate {
    position: relative;
    margin-bottom: 40px;
}

.plate-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter:
        contrast(0.92)
        sepia(0.35)
        saturate(0.65)
        brightness(0.85);
    border: 1px solid var(--rule);
    background: linear-gradient(135deg, var(--ink-soft), var(--brass-deep));
}

/* logo plate (cover) — uses brand mark instead of photo */
.plate-mark .plate-mark-frame {
    aspect-ratio: 1/1;
    background:
        radial-gradient(circle at 50% 38%, rgba(193, 148, 75, 0.10), transparent 65%),
        var(--paper-bright);
    border: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10%;
    position: relative;
    overflow: hidden;
}

.plate-mark .plate-mark-frame::before {
    content: "";
    position: absolute;
    top: 14px; left: 14px; right: 14px; bottom: 14px;
    border: 1px solid var(--brass);
    opacity: 0.35;
    pointer-events: none;
}

.plate-mark .plate-mark-frame::after {
    content: "MMXXVI";
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.4em;
    color: var(--brass-deep);
    opacity: 0.55;
}

.plate-mark .plate-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 12px rgba(14, 13, 10, 0.08));
}

/* dark frame — for the black-background logo */
.plate-mark .plate-mark-frame.plate-mark-dark {
    background:
        radial-gradient(circle at 50% 38%, rgba(193, 148, 75, 0.14), transparent 60%),
        var(--ink);
    border-color: var(--brass-deep);
    padding: 6%;
}

.plate-mark-dark::before { border-color: var(--brass) !important; opacity: 0.4 !important; }
.plate-mark-dark::after { color: var(--brass-soft) !important; opacity: 0.7 !important; }
.plate-mark-dark .plate-logo { filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.4)); }

.plate-cap {
    margin-top: 14px;
    font-family: 'Spectral', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.plate-cap-line {
    width: 32px;
    height: 1px;
    background: var(--brass);
    margin-top: 9px;
    flex-shrink: 0;
}

.margin-note {
    border-top: 1px solid var(--rule);
    padding: 24px 0 0 0;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.margin-mark {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 36px;
    color: var(--brass);
    line-height: 0.9;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    flex-shrink: 0;
}

.margin-note p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
    font-style: italic;
}

/* ============ CHAPTERS ============ */
.chapters {
    background: var(--paper-cream);
    padding: 140px 36px 140px;
    position: relative;
}

.chapters::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: var(--rule);
}

.chapters-head {
    max-width: 880px;
    margin: 0 auto 100px;
    text-align: center;
}

.chapters-head .ch-folio { margin-bottom: 28px; }

.ch-title {
    font-size: clamp(40px, 6vw, 84px);
    font-variation-settings: "opsz" 144, "SOFT" 50;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}

.ch-lede {
    max-width: 600px;
    margin: 12px auto 0;
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.65;
}

.ch-list {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.ch-card {
    background: var(--paper-bright);
    padding: 56px 56px 56px 56px;
    border: 1px solid var(--rule-soft);
    margin: -1px 0 0 -1px;
    position: relative;
    transition: background 0.4s;
    display: flex;
    gap: 28px;
}

.ch-card:hover { background: var(--paper-soft); }

.ch-card.primary {
    background: var(--ink);
    color: var(--paper-cream);
    border-color: var(--ink-line);
}

.ch-card.primary:hover { background: #161310; }

.ch-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--brass-deep);
    flex-shrink: 0;
    width: 70px;
    padding-top: 6px;
    border-top: 1px solid var(--rule);
}

.ch-card.primary .ch-num {
    color: var(--brass);
    border-top-color: var(--brass-deep);
}

.ch-body { flex: 1; min-width: 0; }

.ch-card h3 {
    font-size: 36px;
    font-variation-settings: "opsz" 144, "SOFT" 80;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.05;
}

.ch-card.primary h3 { color: var(--paper-bright); }

.ch-summary {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 460px;
    font-style: italic;
}

.ch-card.primary .ch-summary { color: var(--brass-soft); }

.ch-points {
    list-style: none;
    border-top: 1px solid var(--rule-soft);
}

.ch-card.primary .ch-points { border-top-color: var(--ink-line); }

.ch-points li {
    padding: 11px 0 11px 22px;
    border-bottom: 1px solid var(--rule-soft);
    position: relative;
    font-size: 14.5px;
    color: var(--ink);
    line-height: 1.5;
}

.ch-card.primary .ch-points li {
    color: var(--paper-cream);
    border-bottom-color: var(--ink-line);
}

.ch-points li:last-child { border-bottom: none; }

.ch-points li::before {
    content: "§";
    color: var(--brass-deep);
    position: absolute;
    left: 0;
    top: 11px;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
}

.ch-card.primary .ch-points li::before { color: var(--brass); }

.ch-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: var(--brass-deep);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-decoration: none;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s, gap 0.2s;
}

.ch-link:hover {
    color: var(--ink);
    gap: 16px;
}

/* ============ OFFICE ============ */
.office {
    background: var(--paper);
    padding: 140px 36px 140px;
    position: relative;
}

.office-head {
    max-width: 880px;
    margin: 0 auto 56px;
    text-align: center;
}

.office-head .ch-folio { margin-bottom: 24px; }

/* lawyer portrait — leads the section, before the explanation */
.office-portrait {
    max-width: 460px;
    margin: 0 auto 64px;
}

.office-portrait-frame {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ink) 0%, var(--brass-deep) 100%);
    position: relative;
    border: 1px solid var(--rule);
}

.office-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter:
        contrast(1.02)
        sepia(0.18)
        saturate(0.78)
        brightness(0.96);
    transition: filter 0.6s ease;
}

.office-portrait:hover .office-portrait-frame img {
    filter: contrast(1.04) sepia(0.08) saturate(0.92) brightness(1);
}

.office-portrait figcaption {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

/* OAB stamp overlay on lawyer portrait */
.plate-stamp {
    position: absolute;
    bottom: 18px;
    right: 18px;
    background: rgba(241, 231, 208, 0.94);
    backdrop-filter: blur(4px);
    color: var(--ink);
    padding: 10px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.45;
    border: 1px solid var(--brass);
    box-shadow: 0 2px 14px rgba(14, 13, 10, 0.35);
    z-index: 2;
}

.plate-stamp strong {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--brass-deep);
    font-weight: 600;
    font-feature-settings: "lnum" 1;
}

.plate-num {
    color: var(--brass-deep);
}

.plate-text {
    font-family: 'Spectral', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
}

.office-text {
    max-width: 680px;
    margin: 0 auto;
}

.office-title {
    font-size: clamp(36px, 4.5vw, 60px);
    margin: 14px 0 0;
    font-variation-settings: "opsz" 144, "SOFT" 60;
    letter-spacing: -0.02em;
}

.office-text p {
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 22px;
    line-height: 1.78;
}

.office-text strong {
    color: var(--ink);
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.04em;
}

.dropcap { position: relative; }

.dc-letter {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 88px;
    line-height: 0.85;
    color: var(--brass-deep);
    float: left;
    margin: 6px 14px 0 0;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    font-weight: 400;
}

.office-creds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
}

.cred-label {
    margin-bottom: 12px;
    display: block;
}

.office-creds p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    font-style: italic;
}

/* ============ CONTACT ============ */
.contact {
    background: var(--ink);
    color: var(--paper-cream);
    padding: 140px 36px;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(193, 148, 75, 0.18) 0%, transparent 50%);
    pointer-events: none;
}

.contact-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.contact-head {
    text-align: center;
    margin-bottom: 64px;
}

.contact-head .ch-folio {
    color: var(--brass);
    margin-bottom: 28px;
}

.contact h2 {
    font-size: clamp(40px, 5.5vw, 72px);
    color: var(--paper-bright);
    margin-bottom: 6px;
    font-variation-settings: "opsz" 144, "SOFT" 60;
    letter-spacing: -0.025em;
}

.contact h2 em { color: var(--brass-light); }

.contact-head p {
    color: var(--brass-soft);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
}

.contact .asterism { color: var(--brass); }

.lead-form {
    background: rgba(241, 231, 208, 0.025);
    border: 1px solid var(--ink-line);
    padding: 56px 56px;
    backdrop-filter: blur(2px);
    position: relative;
}

.lead-form::before {
    content: "";
    position: absolute;
    top: -1px; left: 24px;
    width: 80px; height: 1px;
    background: var(--brass);
}

.form-row { margin-bottom: 28px; }

.field { display: block; }

.field label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--brass-soft);
    margin-bottom: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
}

.lbl-num {
    color: var(--brass);
    border: 1px solid var(--brass-deep);
    padding: 3px 7px;
    font-size: 9.5px;
    letter-spacing: 0.1em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ink-line);
    font-family: 'Spectral', serif;
    font-size: 17px;
    color: var(--paper-bright);
    transition: border-color 0.3s;
    border-radius: 0;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(217, 184, 118, 0.35);
    font-style: italic;
}

.field select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23a07831' stroke-width='1.4' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 30px;
}

.field select option {
    background: var(--ink);
    color: var(--paper-bright);
}

.field textarea {
    resize: vertical;
    min-height: 100px;
    padding: 14px 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--brass);
}

.btn-submit {
    width: 100%;
    background: var(--brass);
    color: var(--ink);
    border: 1px solid var(--brass);
    margin-top: 16px;
    padding: 22px;
    justify-content: center;
}

.btn-submit:hover {
    background: var(--brass-light);
    border-color: var(--brass-light);
}

.btn-submit .btn-arrow { transition: transform 0.3s; }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }

.disclaimer {
    margin-top: 28px;
    font-size: 12px;
    color: var(--brass-soft);
    text-align: center;
    line-height: 1.65;
    opacity: 0.65;
    font-style: italic;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.field-error { border-bottom-color: #c44b3b !important; }

.error-msg {
    color: #ec8174;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    margin-top: 8px;
    display: block;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============ COLOPHON ============ */
footer {
    background: var(--ink);
    color: var(--paper-cream);
    padding: 80px 36px 32px;
    border-top: 1px solid var(--brass-deep);
}

.colophon {
    max-width: 1280px;
    margin: 0 auto;
}

.cl-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--ink-line);
}

.cl-col { display: flex; flex-direction: column; }

.cl-col-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.cl-logo {
    width: 140px;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 50% 38%, rgba(193, 148, 75, 0.10), transparent 65%),
        var(--paper-bright);
    border: 1px solid var(--brass);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cl-logo::before {
    content: "";
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px solid rgba(160, 120, 49, 0.35);
    pointer-events: none;
}

.cl-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.cl-tag {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--brass);
    letter-spacing: 0.22em;
    text-transform: lowercase;
}

.cl-areas {
    width: 100%;
    margin-top: 6px;
    color: rgba(217, 184, 118, 0.55);
    font-size: 12.5px;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.cl-label {
    color: var(--brass);
    margin-bottom: 18px;
}

.cl-col p {
    font-size: 14px;
    color: var(--paper-cream);
    margin-bottom: 8px;
    line-height: 1.55;
}

.cl-col a {
    color: var(--brass-light);
    text-decoration: none;
    transition: color 0.2s;
    font-style: italic;
}

.cl-col a:hover { color: var(--brass-soft); }

.cl-note {
    font-size: 11px !important;
    color: rgba(217, 184, 118, 0.5) !important;
    line-height: 1.65;
    margin-top: 12px !important;
    font-style: italic;
}

.cl-base {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 32px;
    flex-wrap: wrap;
}

.cl-base span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: rgba(217, 184, 118, 0.45);
    letter-spacing: 0.1em;
}

.cl-asterism {
    font-family: 'Fraunces', serif;
    color: var(--brass);
    font-size: 18px;
    letter-spacing: 0.4em;
    opacity: 0.6;
}

.cl-fineprint {
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.14em !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .cover-grid { grid-template-columns: 1fr; gap: 56px; }
    .cover-aside { padding-top: 0; }
    .plate-img { aspect-ratio: 16/10; }
    .ch-list { grid-template-columns: 1fr; }
    .cl-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 920px) {
    .mark-nav { display: none; }
    .mark-toggle { margin-left: auto; }
}

@media (max-width: 720px) {
    .mark-inner { padding: 12px 22px; }
    .mark-brand-name { font-size: 18px; letter-spacing: 0.18em; }
    .site-menu { padding: 28px 26px 32px; }
    .cover { padding: 70px 22px 90px; }
    .chapters, .office, .contact { padding: 90px 22px; }
    footer { padding: 64px 22px 28px; }
    .cover-title { font-size: clamp(46px, 13vw, 80px); }
    .cover-title .line:nth-child(2) { padding-left: 0.3em; }
    .cover-title .line:nth-child(3) { padding-left: 0; }
    .cover-title .line:nth-child(4) { padding-left: 0.6em; }
    .cover-foot { grid-template-columns: 1fr; gap: 24px; }
    .ch-card { padding: 40px 28px; flex-direction: column; gap: 18px; }
    .ch-num { width: auto; padding-top: 0; border-top: none; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
    .ch-card.primary .ch-num { border-bottom-color: var(--brass-deep); }
    .ch-card h3 { font-size: 30px; }
    .lead-form { padding: 32px 22px; }
    .office-creds { grid-template-columns: 1fr; gap: 22px; }
    .office { padding: 90px 22px; }
    .cl-base { flex-direction: column; align-items: flex-start; }
    .cl-fineprint { margin-left: 0; }
    .btn { padding: 16px 24px; }
    .cover-actions .btn { width: 100%; justify-content: center; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
