:root {
    --d2-navy: #061a31;
    --d2-navy-2: #0b2d4d;
    --d2-paper: #f2eee5;
    --d2-gold: #d4a64a;
    --d2-ink: #102236;
    --d2-shell: min(1240px, calc(100% - 54px));
}

.d2 { color: var(--d2-ink); background: var(--d2-paper); }
.d2-shell { width: var(--d2-shell); margin-inline: auto; }
.d2-header { min-height: 94px; display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 30px; padding: 0 max(27px, calc((100vw - 1240px) / 2)); background: #fffdf8; border-bottom: 1px solid #dbd4c7; }
.d2-logo { width: 148px; height: 82px; }
.d2-logo img { width: 100%; height: 100%; object-fit: contain; }
.d2-nav { justify-self: center; display: flex; gap: 32px; }
.d2-nav a { font-size: .69rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.d2-nav a:hover, .d2-nav a:focus-visible { color: #9b6f1e; }
.d2-contact { padding-bottom: 5px; border-bottom: 1px solid #af7c1d; color: #8d6418; font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.d2-menu-toggle { display: none; }

.d2-hero { position: relative; isolation: isolate; min-height: 770px; display: grid; grid-template-columns: minmax(420px, .92fr) minmax(0, 1.08fr) 190px; overflow: hidden; color: white; background: var(--d2-navy); }
.d2-hero__backdrop, .d2-hero__backdrop img, .d2-hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.d2-hero__backdrop { z-index: -2; }
.d2-hero__backdrop img { display: block; object-fit: cover; object-position: center; }
.d2-hero__veil { z-index: -1; background: linear-gradient(90deg, rgba(2,14,28,.44), rgba(2,14,28,.06) 48%, rgba(2,14,28,.42)); }
.d2-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(45px, 6vw, 110px); background: linear-gradient(135deg, rgba(6,26,49,.68), rgba(6,26,49,.39)); border-right: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); -webkit-backdrop-filter: blur(17px) saturate(130%); backdrop-filter: blur(17px) saturate(130%); }
.d2-kicker { margin: 0; color: var(--d2-gold); font-size: .65rem; font-weight: 800; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; }
.d2-hero h1 { margin: 28px 0 30px; font-family: var(--preview-display); font-size: clamp(3.7rem, 6vw, 7rem); font-weight: 400; letter-spacing: -.055em; line-height: .82; }
.d2-hero h1 em { color: var(--d2-gold); font-weight: 400; }
.d2-hero__copy > p:not(.d2-kicker) { max-width: 570px; margin: 0; color: rgba(255,255,255,.68); font-size: .95rem; line-height: 1.75; }
.d2-hero__actions { display: flex; gap: 24px; align-items: center; margin-top: 36px; }
.d2-hero__actions a:first-child { min-height: 48px; display: inline-flex; align-items: center; padding: 0 22px; color: var(--d2-navy); background: var(--d2-gold); font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.d2-hero__actions a:last-child { padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.35); font-size: .7rem; }
.d2-hero__visual { position: relative; min-width: 0; overflow: hidden; border-right: 1px solid rgba(255,255,255,.18); }
.d2-hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,49,.16), transparent 50%, rgba(6,26,49,.14)); pointer-events: none; }
.d2-hero__brand { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(48%, 360px); aspect-ratio: 1; padding: 24px; background: linear-gradient(145deg, rgba(255,253,248,.28), rgba(255,253,248,.11)); border: 1px solid rgba(255,255,255,.48); box-shadow: 0 30px 70px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.38); -webkit-backdrop-filter: blur(18px) saturate(125%); backdrop-filter: blur(18px) saturate(125%); transform: translate(-50%,-50%); }
.d2-hero__brand img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 13px 24px rgba(1,12,24,.32)); }
.d2-hero__caption { position: absolute; z-index: 2; right: 22px; bottom: 24px; margin: 0; font-size: .58rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.d2-hero__index { display: grid; align-content: center; background: linear-gradient(145deg, rgba(4,20,38,.68), rgba(4,20,38,.4)); border-left: 1px solid rgba(255,255,255,.14); box-shadow: inset 1px 0 0 rgba(255,255,255,.05); -webkit-backdrop-filter: blur(16px) saturate(125%); backdrop-filter: blur(16px) saturate(125%); }
.d2-hero__index a { display: grid; gap: 4px; padding: 18px 23px; color: rgba(255,255,255,.76); border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--preview-display); font-size: .9rem; }
.d2-hero__index span { color: var(--d2-gold); font-family: var(--preview-body); font-size: .48rem; font-weight: 800; }
.d2-hero__index a:hover { color: white; background: rgba(212,166,74,.1); }

.d2-statement { padding-block: 120px; background: #fffdf8; }
.d2-statement .d2-shell { display: grid; grid-template-columns: .42fr 1.25fr .73fr; gap: 65px; align-items: start; }
.d2-statement h2 { margin: 0; font-family: var(--preview-display); font-size: clamp(2.7rem, 5.2vw, 5.8rem); font-weight: 400; letter-spacing: -.045em; line-height: .96; }
.d2-statement__body { padding-top: 8px; }
.d2-statement__body p { margin: 0 0 18px; color: #64707d; font-size: .83rem; line-height: 1.75; }
.d2-statement__body a { display: inline-flex; gap: 12px; margin-top: 18px; padding-bottom: 5px; border-bottom: 1px solid #ae7c21; color: #89621a; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.d2-services { padding-block: 110px; }
.d2-section-head { display: grid; grid-template-columns: .42fr 1.58fr; gap: 48px; align-items: start; margin-bottom: 55px; }
.d2-section-head > p { margin: 8px 0 0; color: #9b701e; font-size: .63rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.d2-section-head h2 { max-width: 800px; margin: 0; font-family: var(--preview-display); font-size: clamp(2.5rem, 4.7vw, 5.1rem); font-weight: 400; letter-spacing: -.045em; line-height: .96; }
.d2-service-list { border-top: 1px solid #cfc7ba; }
.d2-service { border-bottom: 1px solid #cfc7ba; }
.d2-service button { width: 100%; min-height: 96px; display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; padding: 0; color: var(--d2-ink); text-align: left; background: transparent; border: 0; cursor: pointer; }
.d2-service button > span { color: #aa7b25; font-size: .6rem; font-weight: 800; }
.d2-service-title { margin: 0; font-family: var(--preview-display); font-size: clamp(1.65rem, 2.8vw, 3rem); font-weight: 400; }
.d2-service i { font-size: 1.45rem; font-style: normal; font-weight: 300; transition: transform 180ms ease; }
.d2-service__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms ease; }
.d2-service__detail p { min-height: 0; overflow: hidden; max-width: 620px; margin: 0 0 0 80px; color: #63707d; font-size: .86rem; line-height: 1.7; }
.d2-service.is-open .d2-service__detail { grid-template-rows: 1fr; }
.d2-service.is-open .d2-service__detail p { padding-bottom: 32px; }
.d2-service.is-open i { transform: rotate(45deg); }

.d2-opportunities { padding-block: 105px; color: white; background: var(--d2-navy); }
.d2-section-head--light > p { color: #d7a84b; }
.d2-section-head--light h2 { color: white; }
.d2-opportunity-grid { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 520px; }
.d2-opportunity { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 26px; overflow: hidden; background-image: linear-gradient(0deg, rgba(2,16,31,.93), rgba(2,16,31,.05) 72%), url('/assets/images/three-countries-hero-charming-1200.webp'); background-size: auto 100%; border-right: 1px solid rgba(255,255,255,.22); }
.d2-opportunity--1 { background-position: 0 center; }
.d2-opportunity--2 { background-position: 40% center; }
.d2-opportunity--3 { background-position: 77% center; }
.d2-opportunity--4 { background-position: 100% center; }
.d2-opportunity > * { position: relative; z-index: 1; }
.d2-opportunity > p { margin: 0; color: #e0b457; font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.d2-opportunity h3 { margin: 12px 0; font-family: var(--preview-display); font-size: 1.55rem; font-weight: 400; line-height: 1.08; }
.d2-opportunity > span { color: rgba(255,255,255,.68); font-size: .72rem; line-height: 1.55; }
.d2-opportunity > a { width: 38px; height: 38px; display: grid; place-items: center; margin-top: 20px; color: var(--d2-navy); background: var(--d2-gold); }

.d2-news { padding-block: 110px; }
.d2-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #cbc3b5; }
.d2-news-grid article { min-height: 320px; display: flex; flex-direction: column; padding: 32px 36px; border-right: 1px solid #cbc3b5; border-bottom: 1px solid #cbc3b5; }
.d2-news-grid article > span { color: #a7761c; font-size: .57rem; font-weight: 800; }
.d2-news-grid h3 { margin: 40px 0 16px; font-family: var(--preview-display); font-size: 1.65rem; font-weight: 400; line-height: 1.12; }
.d2-news-grid p { margin: 0; color: #697380; font-size: .78rem; line-height: 1.65; }
.d2-news-grid a { margin-top: auto; color: #8c6419; font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

.d2-footer { color: white; background: #031426; }
.d2-footer__top { display: grid; grid-template-columns: .4fr 1.15fr .45fr; gap: 50px; align-items: end; padding-block: 95px; border-bottom: 1px solid rgba(255,255,255,.12); }
.d2-footer__top h2 { margin: 0; font-family: var(--preview-display); font-size: clamp(2.8rem, 5vw, 5.5rem); font-weight: 400; letter-spacing: -.045em; line-height: .94; }
.d2-footer__top > a { justify-self: end; padding-bottom: 6px; border-bottom: 1px solid #d4a64a; color: #e2b85f; font-size: .72rem; }
.d2-footer__bottom { min-height: 150px; display: grid; grid-template-columns: 130px 1fr auto auto; gap: 45px; align-items: center; color: rgba(255,255,255,.62); font-size: .72rem; }
.d2-footer__bottom img { width: 110px; height: 100px; object-fit: contain; background: white; }

@media (max-width: 1080px) {
    .d2-header { grid-template-columns: 150px 1fr auto; }
    .d2-nav { display: none; position: absolute; z-index: 90; top: 136px; left: 0; right: 0; padding: 22px 28px; background: #fffdf8; }
    .d2-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; }
    .d2-menu-toggle { justify-self: end; width: 42px; height: 40px; display: grid; place-content: center; gap: 6px; background: transparent; border: 1px solid #d5cec2; }
    .d2-menu-toggle span { width: 20px; height: 1px; background: var(--d2-navy); }
    .d2-hero { grid-template-columns: 1fr 1fr; }
    .d2-hero__index { grid-column: 1 / -1; grid-template-columns: repeat(6,1fr); }
    .d2-statement .d2-shell { grid-template-columns: .4fr 1.1fr; }
    .d2-statement__body { grid-column: 2; }
    .d2-opportunity-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    :root { --d2-shell: min(100% - 28px, 1240px); }
    .d2-header { min-height: 78px; grid-template-columns: 115px 1fr auto; gap: 8px; padding-inline: 14px; }
    .d2-logo { width: 110px; height: 66px; }
    .d2-contact { display: none; }
    .d2-nav { top: 120px; }
    .d2-hero { grid-template-columns: 1fr; }
    .d2-hero__copy { padding: 68px 28px; }
    .d2-hero h1 { font-size: 4.2rem; }
    .d2-hero__visual { min-height: 560px; }
    .d2-hero__index { grid-column: auto; grid-template-columns: 1fr 1fr; }
    .d2-statement, .d2-services, .d2-news { padding-block: 72px; }
    .d2-statement .d2-shell, .d2-section-head { grid-template-columns: 1fr; gap: 28px; }
    .d2-statement__body { grid-column: auto; }
    .d2-opportunity-grid, .d2-news-grid { grid-template-columns: 1fr; }
    .d2-opportunity { min-height: 390px; }
    .d2-footer__top { grid-template-columns: 1fr; gap: 28px; padding-block: 70px; }
    .d2-footer__top > a { justify-self: start; }
    .d2-footer__bottom { grid-template-columns: 1fr; gap: 16px; padding-block: 35px; }
}
