:root {
    --navy-950: #071727;
    --navy-900: #0b1f33;
    --navy-800: #12324e;
    --blue-700: #1b5478;
    --gold-500: #c99a52;
    --gold-300: #e2c795;
    --white: #ffffff;
    --paper: #f5f7f8;
    --ink: #16202a;
    --muted: #66717c;
    --line: #dce2e6;
    --shadow: 0 24px 70px rgba(7, 23, 39, 0.16);
    --font-sans: "DM Sans", Arial, sans-serif;
    --font-serif: "Playfair Display", Georgia, serif;
    --container: min(1180px, calc(100% - 48px));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: var(--container); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; background: var(--white); color: var(--navy-950); transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled { background: rgba(255,255,255,.96); border-color: var(--line); box-shadow: 0 8px 30px rgba(7,23,39,.06); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--white); background: var(--navy-900); border: 1px solid rgba(255,255,255,.3); font-family: var(--font-serif); font-weight: 700; letter-spacing: -.04em; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { color: var(--navy-950); font-size: .98rem; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .75rem; letter-spacing: .04em; }

.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav a { position: relative; color: #2c3945; font-size: .9rem; font-weight: 600; }
.primary-nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--gold-500); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { right: 0; }
.primary-nav .nav-contact { padding: 11px 19px; color: var(--white); background: var(--navy-900); transition: background .2s ease, transform .2s ease; }
.primary-nav .nav-contact:hover { background: var(--blue-700); transform: translateY(-1px); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 11px; border: 0; background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--navy-900); transition: transform .2s ease, opacity .2s ease; }

.hero { position: relative; min-height: 760px; overflow: hidden; background: var(--paper); }
.hero-backdrop { position: absolute; inset: 0; background: linear-gradient(112deg, rgba(11,31,51,.055) 0 48%, transparent 48% 100%); }
.hero-grid { position: relative; z-index: 1; min-height: 760px; padding-top: 142px; padding-bottom: 78px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(48px, 7vw, 96px); }
.hero-content { max-width: 640px; }
.eyebrow, .section-number { margin: 0 0 22px; color: var(--blue-700); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 0; color: var(--navy-950); font-family: var(--font-serif); font-size: clamp(3rem, 5.6vw, 5.5rem); line-height: 1.04; letter-spacing: -.045em; }
.hero h1 em { position: relative; color: var(--blue-700); font-style: italic; }
.hero h1 em::after { content: ""; position: absolute; right: 0; bottom: -3px; left: 3px; height: 4px; background: var(--gold-500); transform: rotate(-1.2deg); }
.hero-lead { max-width: 600px; margin: 30px 0 0; color: #4d5c69; font-size: 1.1rem; line-height: 1.8; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px; padding: 0 23px; font-size: .94rem; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button-primary { color: var(--white); background: var(--navy-900); box-shadow: 0 12px 25px rgba(11,31,51,.16); }
.button-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(11,31,51,.22); }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-900); font-weight: 700; }
.text-link span { color: var(--gold-500); }
.trust-list { display: flex; flex-wrap: wrap; gap: 16px 25px; margin: 40px 0 0; padding: 23px 0 0; border-top: 1px solid var(--line); list-style: none; }
.trust-list li { color: #485663; font-size: .86rem; font-weight: 600; }
.trust-list span { margin-right: 7px; color: var(--gold-500); }

.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -15px 24px 24px -15px; z-index: -1; border: 1px solid var(--gold-300); }
.hero-visual img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: var(--shadow); }
.hero-note { position: absolute; right: -25px; bottom: 32px; display: flex; align-items: center; gap: 13px; min-width: 245px; padding: 16px 20px; color: var(--white); background: var(--navy-900); box-shadow: 0 18px 36px rgba(7,23,39,.25); }
.note-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: var(--navy-950); background: var(--gold-300); border-radius: 50%; font-weight: 800; }
.hero-note div { display: grid; }
.hero-note strong { font-size: .92rem; }
.hero-note small { margin-top: 2px; color: #b9c5ce; font-size: .76rem; }
.hero-index { position: absolute; right: -18px; bottom: -85px; color: rgba(11,31,51,.045); font-family: var(--font-serif); font-size: 16rem; font-weight: 700; line-height: 1; }

.section { padding: 130px 0; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 130px); }
.section-intro h2, .section-heading h2, .contact-title h2 { margin: 0; color: var(--navy-950); font-family: var(--font-serif); font-size: clamp(2.25rem, 4vw, 3.8rem); line-height: 1.18; letter-spacing: -.035em; }
.about-copy { padding-top: 44px; }
.about-copy p { margin: 0 0 20px; color: var(--muted); }
.about-copy .lead-paragraph { color: #2d3b47; font-size: 1.17rem; line-height: 1.8; }
.service-list { margin-top: 45px; border-top: 1px solid var(--line); }
.service-list div { display: grid; grid-template-columns: 52px 1fr; align-items: center; min-height: 65px; border-bottom: 1px solid var(--line); }
.service-list span { color: var(--gold-500); font-size: .75rem; font-weight: 700; }
.service-list strong { color: var(--navy-900); font-size: .96rem; }

.references { position: relative; overflow: hidden; color: var(--white); background: var(--navy-950); }
.references::after { content: "03"; position: absolute; right: -25px; top: -95px; color: rgba(255,255,255,.025); font-family: var(--font-serif); font-size: 20rem; font-weight: 700; }
.section-heading { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; margin-bottom: 70px; }
.section-number.light { color: var(--gold-300); }
.section-heading h2 { max-width: 700px; color: var(--white); }
.section-heading > p { max-width: 430px; margin: 0 0 7px; color: #9fafbc; }
.reference-list { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.16); }
.reference-card { display: grid; grid-template-columns: 90px 1fr 220px; gap: 38px; align-items: start; padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.16); transition: padding .2s ease, background .2s ease; }
.reference-card:hover { padding-inline: 18px; background: rgba(255,255,255,.035); }
.reference-number { color: var(--gold-300); font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.reference-type { margin: 0 0 9px; color: var(--gold-300) !important; font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.reference-content h3 { max-width: 610px; margin: 0 0 13px; font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.3; }
.reference-content > p { max-width: 650px; margin: 0; color: #aebbc5; }
.reference-result { display: grid; gap: 6px; padding-left: 25px; border-left: 1px solid rgba(255,255,255,.16); }
.reference-result span { color: #7f909d; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.reference-result strong { color: var(--white); font-size: .94rem; }

.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 10vw, 145px); }
.contact-title p:last-child { max-width: 530px; margin: 28px 0 0; color: var(--muted); font-size: 1.05rem; }
.contact-details { border-top: 1px solid #cdd5da; }
.contact-row { display: grid; grid-template-columns: 120px 1fr 30px; align-items: center; min-height: 82px; padding: 12px 0; border-bottom: 1px solid #cdd5da; transition: color .2s ease, padding .2s ease; }
a.contact-row:hover { padding-left: 10px; color: var(--blue-700); }
.contact-row span { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.contact-row strong { overflow-wrap: anywhere; color: var(--navy-900); font-size: 1.08rem; }
.contact-row i { color: var(--gold-500); font-style: normal; font-size: 1.2rem; text-align: right; }
.response-note { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; color: var(--muted); font-size: .84rem; }
.response-note span { width: 8px; height: 8px; background: var(--gold-500); border-radius: 50%; }

.site-footer { padding: 35px 0; color: #94a3af; background: #05111d; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; }
.footer-brand .brand-mark { background: var(--gold-500); color: var(--navy-950); border: 0; }
.footer-brand .brand-copy strong { color: var(--white); }
.footer-brand .brand-copy small { color: #83939f; }
.site-footer p { margin: 0; font-size: .78rem; text-align: center; }
.back-to-top { justify-self: end; color: #dce4ea; font-size: .82rem; font-weight: 600; }
.back-to-top span { margin-left: 8px; color: var(--gold-300); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 4px; }

@media (max-width: 960px) {
    :root { --container: min(calc(100% - 36px), 740px); }
    .menu-toggle { display: block; position: relative; z-index: 102; }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
    .primary-nav { position: fixed; inset: 0; z-index: 101; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 96px 9vw; color: var(--white); background: var(--navy-950); visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
    .primary-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
    .primary-nav a { color: var(--white); font-family: var(--font-serif); font-size: clamp(1.8rem, 7vw, 3rem); }
    .primary-nav .nav-contact { margin-top: 12px; padding: 0; background: transparent; color: var(--gold-300); }
    .site-header:not(.is-scrolled) .brand-copy strong { color: var(--navy-950); }
    .hero-grid { min-height: auto; padding-top: 145px; padding-bottom: 95px; grid-template-columns: 1fr; gap: 70px; }
    .hero { min-height: auto; }
    .hero-content { max-width: 720px; }
    .hero-visual { width: min(100%, 580px); margin-left: auto; }
    .hero-visual img { aspect-ratio: 5 / 4; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
    .about-copy { padding-top: 0; }
    .section-heading { grid-template-columns: 1fr; gap: 25px; }
    .reference-card { grid-template-columns: 60px 1fr; }
    .reference-result { grid-column: 2; padding: 0; border: 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .site-footer p { grid-row: 2; grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 620px) {
    :root { --container: calc(100% - 32px); }
    html { scroll-padding-top: 76px; }
    .nav-wrap { min-height: 76px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-copy small { display: none; }
    .hero-grid { padding-top: 122px; padding-bottom: 72px; gap: 58px; }
    .hero h1 { font-size: clamp(2.65rem, 13vw, 4.1rem); }
    .hero-lead { font-size: 1rem; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
    .button { width: 100%; }
    .trust-list { align-items: flex-start; flex-direction: column; gap: 9px; }
    .hero-visual::before { inset: -10px 14px 14px -10px; }
    .hero-visual img { aspect-ratio: 4 / 5; }
    .hero-note { right: -8px; bottom: 18px; min-width: 225px; }
    .hero-index { display: none; }
    .section { padding: 88px 0; }
    .section-intro h2, .section-heading h2, .contact-title h2 { font-size: 2.35rem; }
    .section-heading { margin-bottom: 45px; }
    .reference-card { grid-template-columns: 1fr; gap: 14px; padding: 30px 0; }
    .reference-card:hover { padding-inline: 0; background: transparent; }
    .reference-result { grid-column: 1; margin-top: 8px; }
    .contact-row { grid-template-columns: 1fr 32px; gap: 4px 12px; padding: 18px 0; }
    .contact-row span { grid-column: 1; }
    .contact-row strong { grid-column: 1; }
    .contact-row i { grid-column: 2; grid-row: 1 / 3; }
    .footer-inner { grid-template-columns: 1fr; }
    .back-to-top { justify-self: start; }
    .site-footer p { grid-row: auto; grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
