:root {
    --d3-night: #020f1e;
    --d3-navy: #052642;
    --d3-gold: #d6aa51;
    --d3-paper: #eee9df;
    --d3-white: #fffdf7;
}

.d3 { color: var(--d3-white); background: var(--d3-night); }
.d3-header { position: absolute; z-index: 100; top: 42px; left: 0; right: 0; min-height: 92px; display: grid; grid-template-columns: 145px 1fr auto; gap: 30px; align-items: center; padding: 0 max(28px, calc((100vw - 1340px) / 2)); border-bottom: 1px solid rgba(255,255,255,.18); }
.d3-logo { width: 128px; height: 76px; padding: 5px 10px; background: rgba(255,253,247,.94); }
.d3-logo img { width: 100%; height: 100%; object-fit: contain; }
.d3-nav { justify-self: center; display: flex; gap: 38px; }
.d3-nav a { color: rgba(255,255,255,.82); font-size: .66rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.d3-nav a:hover, .d3-nav a:focus-visible { color: var(--d3-gold); }
.d3-contact { min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; color: var(--d3-night); background: var(--d3-gold); font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.d3-menu-toggle { display: none; }

.d3-hero { position: relative; min-height: calc(100vh - 42px); display: grid; overflow: hidden; }
.d3-hero__picture, .d3-hero__picture img, .d3-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.d3-hero__picture img { object-fit: cover; object-position: 12% center; transform: scale(1.055); transition: object-position 900ms cubic-bezier(.2,.8,.2,1), transform 900ms cubic-bezier(.2,.8,.2,1); }
.d3-hero[data-country-state="tr"] .d3-hero__picture img { object-position: 51% center; transform: scale(1.02); }
.d3-hero[data-country-state="gb"] .d3-hero__picture img { object-position: 93% center; transform: scale(1.055); }
.d3-hero__shade { background: linear-gradient(180deg, rgba(1,11,23,.55), rgba(1,11,23,.06) 38%, rgba(1,11,23,.8) 100%), linear-gradient(90deg, rgba(1,11,23,.25), transparent 45%, rgba(1,11,23,.18)); }
.d3-hero__center { position: relative; z-index: 3; width: min(850px, calc(100% - 40px)); place-self: center; margin-top: 28px; text-align: center; text-shadow: 0 4px 26px rgba(0,0,0,.46); }
.d3-hero__center > p:first-child { margin: 0 0 22px; color: #e2bd70; font-size: .67rem; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; }
.d3-hero h1 { display: grid; gap: 0; margin: 0; font-family: var(--preview-display); font-weight: 400; letter-spacing: -.045em; line-height: .78; }
.d3-hero h1 span { font-size: clamp(2.2rem, 4vw, 4.8rem); font-weight: 400; letter-spacing: .08em; }
.d3-hero h1 strong { color: white; font-size: clamp(4.6rem, 10.5vw, 11.5rem); font-weight: 400; }
.d3-hero__center > p:nth-of-type(2) { max-width: 640px; margin: 32px auto 0; color: rgba(255,255,255,.78); font-size: .93rem; line-height: 1.7; }
.d3-hero__center > a { display: inline-flex; gap: 13px; margin-top: 28px; padding-bottom: 6px; border-bottom: 1px solid #ddb464; color: #efd18f; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.d3-country-switch { position: absolute; z-index: 4; right: max(28px, calc((100vw - 1340px) / 2)); bottom: 28px; width: min(560px, calc(100% - 56px)); display: grid; grid-template-columns: 170px 1fr; color: white; background: rgba(2,15,30,.82); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); }
.d3-country-switch__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-right: 1px solid rgba(255,255,255,.16); }
.d3-country-switch__tabs button { display: grid; place-items: center; align-content: center; gap: 3px; color: rgba(255,255,255,.58); background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,.12); cursor: pointer; }
.d3-country-switch__tabs button span { font-size: 1.35rem; }
.d3-country-switch__tabs button small { font-size: .5rem; font-weight: 800; letter-spacing: .1em; }
.d3-country-switch__tabs button[aria-selected="true"] { color: var(--d3-night); background: var(--d3-gold); }
.d3-country-switch__panels { min-height: 108px; display: grid; align-items: center; padding: 17px 22px; }
.d3-country-switch__panels article { grid-area: 1 / 1; }
.d3-country-switch__panels h2 { margin: 0 0 5px; font-family: var(--preview-display); font-size: 1.05rem; font-weight: 400; }
.d3-country-switch__panels p { margin: 0; color: rgba(255,255,255,.62); font-size: .62rem; line-height: 1.45; }

.d3-marquee { overflow: hidden; color: var(--d3-night); background: var(--d3-gold); }
.d3-marquee > div { min-width: max-content; display: flex; align-items: center; gap: 24px; padding-block: 15px; animation: d3-marquee 28s linear infinite; }
.d3-marquee span { font-family: var(--preview-display); font-size: 1.05rem; letter-spacing: .035em; }
.d3-marquee i { font-style: normal; }
@keyframes d3-marquee { to { transform: translateX(-50%); } }

.d3-story { width: min(1340px, calc(100% - 56px)); display: grid; grid-template-columns: .25fr 1.2fr .7fr; gap: 65px; align-items: start; margin-inline: auto; padding-block: 140px; }
.d3-story__number { color: rgba(255,255,255,.22); font-family: var(--preview-display); font-size: 6rem; line-height: .8; }
.d3-kicker { margin: 0; color: var(--d3-gold); font-size: .63rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.d3-story h2 { margin: 24px 0 0; font-family: var(--preview-display); font-size: clamp(3rem, 5.6vw, 6.4rem); font-weight: 400; letter-spacing: -.045em; line-height: .91; }
.d3-story__body { padding-top: 8px; }
.d3-story__body p { margin: 0 0 18px; color: rgba(255,255,255,.62); font-size: .83rem; line-height: 1.8; }
.d3-story__body a { display: inline-flex; margin-top: 20px; padding-bottom: 6px; border-bottom: 1px solid #d5a94f; color: #e1b75f; font-size: .63rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

.d3-services { width: min(1340px, calc(100% - 56px)); margin-inline: auto; padding-bottom: 140px; }
.d3-services__head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 55px; }
.d3-services__head h2 { max-width: 760px; margin: 0; font-family: var(--preview-display); font-size: clamp(2.8rem, 5vw, 5.7rem); font-weight: 400; letter-spacing: -.04em; line-height: .94; }
.d3-services__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.18); }
.d3-service { border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.d3-service button { width: 100%; min-height: 105px; display: grid; grid-template-columns: 55px 1fr 30px; align-items: center; padding: 0 26px; color: white; text-align: left; background: transparent; border: 0; cursor: pointer; }
.d3-service button span { color: var(--d3-gold); font-size: .54rem; font-weight: 800; }
.d3-service-title { margin: 0; font-family: var(--preview-display); font-size: 1.65rem; font-weight: 400; }
.d3-service button b { color: #dcb057; font-size: 1rem; font-weight: 400; transition: transform 180ms ease; }
.d3-service > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms ease; }
.d3-service > div p { min-height: 0; overflow: hidden; margin: 0 50px 0 81px; color: rgba(255,255,255,.58); font-size: .75rem; line-height: 1.65; }
.d3-service.is-open > div { grid-template-rows: 1fr; }
.d3-service.is-open > div p { padding-bottom: 30px; }
.d3-service.is-open button b { transform: rotate(90deg); }

.d3-journey { color: var(--d3-night); background: var(--d3-paper); }
.d3-journey__intro { width: min(1340px, calc(100% - 56px)); display: grid; grid-template-columns: .4fr 1.6fr; gap: 55px; align-items: start; margin-inline: auto; padding-block: 110px 65px; }
.d3-journey__intro h2 { margin: 0; font-family: var(--preview-display); font-size: clamp(3rem, 5.8vw, 6.6rem); font-weight: 400; letter-spacing: -.045em; line-height: .9; }
.d3-journey__tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.d3-journey__tile { position: relative; min-height: 570px; display: flex; flex-direction: column; justify-content: flex-end; padding: 35px 28px; overflow: hidden; color: white; background-image: linear-gradient(0deg, rgba(2,15,30,.92), rgba(2,15,30,.02) 68%), url('/assets/images/three-countries-hero-charming.webp'); background-size: auto 100%; border-right: 1px solid rgba(255,255,255,.26); }
.d3-journey__tile--1 { background-position: 0 center; }
.d3-journey__tile--2 { background-position: 40% center; }
.d3-journey__tile--3 { background-position: 78% center; }
.d3-journey__tile--4 { background-position: 100% center; }
.d3-journey__tile > * { position: relative; z-index: 1; }
.d3-journey__tile > span { color: #e1b75f; font-size: .59rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.d3-journey__tile h3 { margin: 13px 0; font-family: var(--preview-display); font-size: 1.65rem; font-weight: 400; line-height: 1.08; }
.d3-journey__tile p { margin: 0; color: rgba(255,255,255,.65); font-size: .73rem; line-height: 1.6; }
.d3-journey__tile a { width: 40px; height: 40px; display: grid; place-items: center; margin-top: 23px; color: var(--d3-night); background: var(--d3-gold); }

.d3-footer { width: min(1340px, calc(100% - 56px)); display: grid; grid-template-columns: .65fr 1.35fr; gap: 100px; margin-inline: auto; padding-block: 110px; }
.d3-footer__brand img { width: 160px; height: 140px; object-fit: contain; background: white; }
.d3-footer__brand p { max-width: 320px; margin: 25px 0 0; color: rgba(255,255,255,.55); font-family: var(--preview-display); font-size: 1.05rem; }
.d3-footer__mail { display: inline-block; margin: 28px 0 50px; padding-bottom: 8px; border-bottom: 1px solid #d5a94f; font-family: var(--preview-display); font-size: clamp(2.2rem, 4.5vw, 5rem); }
.d3-footer__contact > div { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; color: rgba(255,255,255,.56); font-size: .72rem; line-height: 1.55; }

@media (max-width: 1050px) {
    .d3-header { grid-template-columns: 135px 1fr auto; }
    .d3-nav { display: none; position: absolute; top: 92px; left: 0; right: 0; padding: 22px 28px; background: rgba(2,15,30,.95); }
    .d3-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; }
    .d3-menu-toggle { justify-self: end; width: 42px; height: 40px; display: grid; place-content: center; gap: 6px; color: white; background: rgba(2,15,30,.25); border: 1px solid rgba(255,255,255,.35); }
    .d3-menu-toggle span { width: 20px; height: 1px; background: white; }
    .d3-story { grid-template-columns: .25fr 1fr; }
    .d3-story__body { grid-column: 2; }
    .d3-journey__tiles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .d3-header { top: 42px; min-height: 78px; grid-template-columns: 105px 1fr; gap: 8px; padding-inline: 14px; }
    .d3-logo { width: 100px; height: 64px; }
    .d3-contact { display: none; }
    .d3-hero { min-height: 920px; }
    .d3-hero__center { margin-top: -120px; }
    .d3-hero h1 strong { font-size: 4.9rem; }
    .d3-country-switch { left: 14px; right: 14px; bottom: 18px; width: auto; grid-template-columns: 1fr; }
    .d3-country-switch__tabs { min-height: 62px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
    .d3-story, .d3-services, .d3-journey__intro, .d3-footer { width: min(100% - 28px, 1340px); }
    .d3-story { grid-template-columns: 1fr; gap: 28px; padding-block: 80px; }
    .d3-story__number { font-size: 4rem; }
    .d3-story__body { grid-column: auto; }
    .d3-services { padding-bottom: 80px; }
    .d3-services__head { display: grid; gap: 24px; }
    .d3-services__grid, .d3-journey__intro, .d3-footer { grid-template-columns: 1fr; }
    .d3-journey__intro { gap: 28px; padding-block: 80px 45px; }
    .d3-journey__tiles { grid-template-columns: 1fr; }
    .d3-journey__tile { min-height: 440px; }
    .d3-footer { gap: 45px; padding-block: 75px; }
    .d3-footer__mail { font-size: 2.1rem; }
    .d3-footer__contact > div { grid-template-columns: 1fr; gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .d3-marquee > div { animation: none; }
}
