:root {
    --d1-navy: #052446;
    --d1-navy-deep: #03182f;
    --d1-gold: #c58b1b;
    --d1-gold-soft: #e0b65b;
    --d1-paper: #f7f6f2;
    --d1-ink: #10233b;
    --d1-shell: min(1380px, calc(100% - 48px));
}

.d1 { color: var(--d1-ink); background: var(--d1-paper); }
.d1-shell { width: var(--d1-shell); margin-inline: auto; }
.d1-skip { position: fixed; z-index: 2000; top: 6px; left: 6px; padding: 8px; color: white; background: var(--d1-navy); transform: translateY(-200%); }
.d1-skip:focus { transform: none; }
.d1-header { position: sticky; z-index: 100; top: 0; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid #e5e2db; backdrop-filter: blur(12px); }
.d1-nav { min-height: 104px; display: flex; align-items: center; gap: 25px; }
.d1-logo { width: 180px; height: 90px; flex: 0 0 auto; }
.d1-logo img { width: 100%; height: 100%; object-fit: contain; }
.d1-links { margin-left: auto; display: flex; align-items: center; gap: clamp(15px, 1.7vw, 30px); }
.d1-links a { padding: 13px 0 10px; border-bottom: 2px solid transparent; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.035em; text-transform: uppercase; white-space: nowrap; }
.d1-links a:hover, .d1-links a:focus-visible, .d1-links .is-active { color: #9b6d13; border-color: var(--d1-gold); }
.d1-cta { min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; color: white; background: var(--d1-gold); border: 1px solid var(--d1-gold); border-radius: 2px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.d1-cta:hover, .d1-cta:focus-visible { color: var(--d1-gold); background: transparent; }
.d1-menu-toggle { display: none; }

.d1-hero { position: relative; min-height: 560px; display: grid; overflow: hidden; color: white; background: var(--d1-navy-deep); }
.d1-hero__picture, .d1-hero__picture img, .d1-hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.d1-hero__picture img { object-fit: cover; }
.d1-hero__veil { background: linear-gradient(90deg, rgba(2, 19, 37, 0.63), rgba(2, 19, 37, 0.16) 47%, rgba(2, 19, 37, 0.52)); }
.d1-hero__grid { position: relative; z-index: 2; min-height: 560px; display: grid; grid-template-columns: minmax(220px, 0.72fr) minmax(350px, 1fr) minmax(260px, 0.75fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: 56px; }
.d1-hero__micro { max-width: 280px; margin: 0 0 20px; color: #f2cf84; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.12em; line-height: 1.5; text-transform: uppercase; }
.d1-hero__services ul { margin: 0; padding: 0; list-style: none; font-family: var(--preview-display); font-size: clamp(1.5rem, 2.15vw, 2.45rem); font-weight: 700; line-height: 1.08; text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.d1-hero__services li:nth-child(4) { color: #f0c768; }
.d1-flags { display: flex; gap: 10px; margin-top: 30px; }
.d1-flags span { min-width: 60px; display: grid; justify-items: center; gap: 2px; padding: 7px 8px 5px; color: rgba(255,255,255,.86); background: rgba(3,24,47,.38); border: 1px solid rgba(255,255,255,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); -webkit-backdrop-filter: blur(12px) saturate(130%); backdrop-filter: blur(12px) saturate(130%); font-size: .48rem; font-weight: 800; letter-spacing: .1em; }
.d1-flags b { font-size: 1.2rem; }
.d1-hero__brand { padding: 25px 34px 22px; text-align: center; background: linear-gradient(145deg, rgba(10,48,82,.56), rgba(3,24,47,.31)); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; box-shadow: 0 24px 55px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.13); -webkit-backdrop-filter: blur(18px) saturate(135%); backdrop-filter: blur(18px) saturate(135%); }
.d1-hero__brand img { width: min(100%, 370px); height: auto; aspect-ratio: 1; display: block; margin-inline: auto; object-fit: contain; background: transparent; filter: drop-shadow(0 13px 24px rgba(1,12,24,.34)); }
.d1-hero__brand p { margin: 4px 0 0; color: rgba(255,255,255,.84); font-family: var(--preview-display); font-size: .82rem; line-height: 1.6; }
.d1-hero__why { overflow: hidden; background: linear-gradient(145deg, rgba(10,48,82,.54), rgba(3,24,47,.32)); border: 1px solid rgba(255,255,255,.23); border-radius: 8px; box-shadow: 0 24px 55px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.12); -webkit-backdrop-filter: blur(18px) saturate(135%); backdrop-filter: blur(18px) saturate(135%); }
.d1-hero__why h1 { margin: 0; padding: 16px 22px; color: white; background: var(--d1-gold); font-family: var(--preview-body); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.d1-hero__why ul { margin: 0; padding: 15px 22px 10px; list-style: none; }
.d1-hero__why li { display: grid; grid-template-columns: 27px 1fr; gap: 9px; align-items: center; padding: 8px 0; font-size: .76rem; }
.d1-hero__why li span { color: #e8bd66; font-size: .57rem; font-weight: 800; }
.d1-hero__why > a { min-height: 44px; display: flex; align-items: center; justify-content: center; margin: 8px 22px 20px; color: var(--d1-navy); background: #e5b34f; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.d1-service-strip { padding-block: 34px 46px; }
.d1-section-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 17px; }
.d1-section-label p, .d1-eyebrow { margin: 0; color: #9c6f18; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.d1-section-label h2 { margin: 0; font-family: var(--preview-display); font-size: 1.75rem; font-weight: 400; }
.d1-service-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.d1-service-card { min-height: 158px; display: grid; grid-template-columns: 32px 1fr; align-content: start; gap: 6px 8px; padding: 19px 16px; color: var(--d1-ink); text-align: left; background: white; border: 1px solid #e0ddd6; border-radius: 3px; cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.d1-service-card:hover, .d1-service-card:focus-visible, .d1-service-card.is-open { z-index: 1; border-color: #c8993b; box-shadow: 0 14px 30px rgba(20,34,49,.09); transform: translateY(-4px); }
.d1-service-card > span { grid-row: 1 / span 2; color: #bb8620; font-size: .58rem; font-weight: 800; }
.d1-service-card strong { font-family: var(--preview-display); font-size: .98rem; }
.d1-service-card__text { grid-column: 2; margin: 5px 0 0; color: #67717d; font-size: .68rem; line-height: 1.5; }

.d1-about { display: grid; grid-template-columns: .72fr 1.28fr; min-height: 430px; margin-bottom: 60px; overflow: hidden; background: white; border: 1px solid #dedad2; }
.d1-about__copy { padding: clamp(34px, 5vw, 68px); }
.d1-about__copy h2 { margin: 16px 0 20px; font-family: var(--preview-display); font-size: clamp(2rem, 3.6vw, 3.75rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.03; }
.d1-about__copy > p:not(.d1-eyebrow) { color: #5f6a78; font-size: .86rem; line-height: 1.75; }
.d1-about__copy > a { display: inline-flex; gap: 9px; margin-top: 16px; padding: 12px 19px; border: 1px solid #c28b21; color: #8f6515; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.d1-opportunity-gallery { display: grid; grid-template-columns: repeat(4, 1fr); }
.d1-opportunity { position: relative; min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end; padding: 25px 18px; overflow: hidden; color: white; background-image: linear-gradient(0deg, rgba(2,19,37,.88), rgba(2,19,37,.05) 65%), url('/assets/images/three-countries-hero-charming-1200.webp'); background-size: auto 100%; }
.d1-opportunity--1 { background-position: 0 center; }
.d1-opportunity--2 { background-position: 39% center; }
.d1-opportunity--3 { background-position: 72% center; }
.d1-opportunity--4 { background-position: 100% center; }
.d1-opportunity::after { content: ""; position: absolute; inset: 0; border-right: 1px solid rgba(255,255,255,.3); }
.d1-opportunity span, .d1-opportunity h3 { position: relative; z-index: 1; }
.d1-opportunity span { color: #e6bd68; font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.d1-opportunity h3 { margin: 8px 0 0; font-family: var(--preview-display); font-size: 1.1rem; font-weight: 400; line-height: 1.2; }

.d1-news { padding-bottom: 72px; }
.d1-news__head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.d1-news__head h2 { margin: 6px 0 0; font-family: var(--preview-display); font-size: 2rem; font-weight: 400; }
.d1-news__head > a { padding: 10px 16px; border: 1px solid #c28b21; color: #8f6515; font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.d1-news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.d1-news__grid article { display: grid; grid-template-columns: 42% 1fr; gap: 17px; padding: 14px; background: white; border: 1px solid #e2dfd8; }
.d1-news__image { min-height: 145px; background-image: url('/assets/images/three-countries-hero-charming-720.webp'); background-size: auto 100%; }
.d1-news__image--1 { background-position: 0 center; }
.d1-news__image--2 { background-position: 45% center; }
.d1-news__image--3 { background-position: 100% center; }
.d1-news h3 { margin: 3px 0 8px; font-family: var(--preview-display); font-size: 1rem; line-height: 1.25; }
.d1-news p { margin: 0 0 11px; color: #66717f; font-size: .67rem; line-height: 1.5; }
.d1-news article a { color: #8d6417; font-size: .6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.d1-footer { color: white; background: var(--d1-navy-deep); }
.d1-footer__inner { min-height: 170px; display: grid; grid-template-columns: 155px repeat(3, 1fr); gap: 40px; align-items: center; padding-block: 24px; }
.d1-footer img { width: 130px; height: 110px; object-fit: contain; background: white; }
.d1-footer__inner div { display: grid; gap: 7px; }
.d1-footer small { color: #d9ad58; font-size: .56rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.d1-footer a, .d1-footer span { font-size: .77rem; line-height: 1.5; }
.d1-footer p { grid-column: 2 / -1; margin: -24px 0 0; color: rgba(255,255,255,.48); font-family: var(--preview-display); font-size: .8rem; letter-spacing: .06em; }

@media (max-width: 1180px) {
    .d1-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 22px 24px; background: white; border-top: 1px solid #e4e0d8; }
    .d1-links.is-open { display: grid; grid-template-columns: repeat(2, 1fr); }
    .d1-menu-toggle { margin-left: auto; width: 42px; height: 40px; display: grid; place-content: center; gap: 6px; background: transparent; border: 1px solid #d8d3ca; }
    .d1-menu-toggle span { width: 20px; height: 1px; background: var(--d1-navy); }
    .d1-hero__grid { grid-template-columns: .75fr 1fr; }
    .d1-hero__why { grid-column: 1 / -1; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; }
    .d1-hero__why ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
    .d1-hero__why > a { min-width: 150px; }
    .d1-service-grid { grid-template-columns: repeat(3, 1fr); }
    .d1-about { grid-template-columns: 1fr; }
    .d1-opportunity-gallery { min-height: 380px; }
}

@media (max-width: 760px) {
    :root { --d1-shell: min(100% - 28px, 1380px); }
    .d1-nav { min-height: 78px; gap: 10px; }
    .d1-logo { width: 122px; height: 68px; }
    .d1-cta { display: none; }
    .d1-hero__grid { min-height: 0; grid-template-columns: 1fr; gap: 26px; padding-block: 38px; }
    .d1-hero__services ul { font-size: 1.72rem; }
    .d1-hero__brand { width: min(100%, 390px); justify-self: center; }
    .d1-hero__why { display: block; }
    .d1-hero__why ul { display: grid; grid-template-columns: 1fr 1fr; }
    .d1-service-grid { grid-template-columns: 1fr 1fr; }
    .d1-service-card__text { display: none; }
    .d1-service-card.is-open .d1-service-card__text { display: block; }
    .d1-opportunity-gallery { grid-template-columns: 1fr 1fr; }
    .d1-opportunity { min-height: 260px; }
    .d1-news__grid { grid-template-columns: 1fr; }
    .d1-footer__inner { grid-template-columns: 1fr; gap: 20px; padding-block: 36px; }
    .d1-footer__inner p { grid-column: auto; margin: 0; }
}

@media (max-width: 480px) {
    .d1-service-grid { grid-template-columns: 1fr; }
    .d1-opportunity-gallery { grid-template-columns: 1fr; }
}
