/* Keep every reference crop at its original aspect ratio. */
.source-photo {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: var(--crop-ratio);
}
.source-photo img {
    position: absolute;
    top: var(--source-top);
    left: var(--source-left);
    width: var(--source-width);
    max-width: none;
    height: auto;
    display: block;
}
.reference-home .reference-hero,
.reference-home .process-section,
.reference-home .sector-band,
.reference-home .visa-feature,
.reference-home .housing-feature,
.reference-home .employer-feature { background: #081522; }
.reference-home .reference-hero {
    background: linear-gradient(180deg, #04182c80, #04182c1a 40%, #04182ca6),
        var(--hero-image, url("hero.png")) center / cover no-repeat #08223a;
}
.reference-home .comparison-section { background: #faf8f5; }
.reference-home .path-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    min-height: 0;
    background: #f5f4ef;
}
.reference-home .employer-card { background: #0b2032; }
.reference-home .path-content {
    margin: 0;
    min-height: 0;
    background: none;
    padding: 24px;
    overflow-wrap: anywhere;
}
.reference-home .path-content .button { white-space: normal; text-align: center; }
.reference-home .path-reference { align-self: center; }
.reference-home .employer-card .path-reference { grid-column: 2; grid-row: 1; }
.reference-home .employer-card .path-content { grid-column: 1; grid-row: 1; }
.comparison-side {
    position: relative;
    display: grid;
    align-items: start;
    min-width: 0;
    background: #141b23;
}
.comparison-side .comparison-caption {
    position: static;
    padding: 12px;
    background: #141b23;
}
.comparison-side:nth-child(2) .comparison-caption b {
    background: #ecc77f;
    color: #132a3b;
}
.process-reference { border-radius: 12px 12px 0 0; }
.reference-home .process-grid { padding-top: 0; }
.reference-home .housing-heading::after { display: none; }
.housing-reference {
    position: absolute;
    right: 0;
    top: 0;
    width: 44%;
    border-radius: 16px;
}
.contact-reference { border-radius: 16px 16px 0 0; }
@media (max-width:640px) {
    .reference-home .path-card { grid-template-columns: 1fr; }
    .reference-home .employer-card .path-reference,
    .reference-home .employer-card .path-content { grid-column: auto; grid-row: auto; }
    .reference-home .path-reference { width: 100%; max-width: 300px; justify-self: center; }
    .reference-home .housing-heading { padding: 0; }
    .housing-reference { position: relative; width: 100%; margin-bottom: 24px; }
}
.reference-home .feature-reference img { border-radius: 0; aspect-ratio: auto; object-fit: unset; }
.feature-reference { border-radius: 24px; }
.reference-home .housing-grid > a > .source-photo { padding: 0; }
.reference-home .section { padding-block: 52px; }
.reference-home .source-photo img { height: auto; aspect-ratio: auto; }
.reference-home .employer-card .path-reference { grid-column: 1; }
.reference-home .employer-card .path-content { grid-column: 2; }
@media (max-width:640px) {
    .reference-home .employer-card .path-reference,
    .reference-home .employer-card .path-content { grid-column: auto; }
}
.reference-home .reference-hero {
    padding: 38px 0 34px;
}
.reference-home .hero-heading .eyebrow {
    margin: 6px 0 10px;
    font-size: clamp(10px, 1.35vw, 19px);
    letter-spacing: .19em;
}
.reference-home .hero-heading h1 {
    max-width: 1050px;
    font-size: clamp(28px, 4.3vw, 64px);
    letter-spacing: .045em;
    text-wrap: balance;
}
.reference-home .hero-motto {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}
.reference-home .hero-motto::before,
.reference-home .hero-motto::after {
    content: "";
    width: min(10vw, 125px);
    border-top: 1px solid #a69178;
}
.reference-home .reference-hero .country {
    background: #161d23;
    border-color: #ae9270;
}
.reference-home .path-grid { gap: 18px; }
.reference-home .path-card {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    align-items: stretch;
    border: 2px solid #fff;
    border-bottom-color: #d5ad66;
    border-radius: 28px;
}
.reference-home .path-reference { align-self: center; }
.reference-home .path-content { align-self: center; }
.reference-home .housing-feature { color: #142a3c; background: #faf8f5; }
.reference-home .housing-feature .lead { color: #425263; }
.reference-home .housing-feature .eyebrow { color: #896127; }
.reference-home .housing-grid { gap: 14px; }
.reference-home .housing-grid > a {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    align-items: center;
    background: #fff;
}
.reference-home .housing-grid > a:last-child { background: #0a2033; color: white; }
.reference-home .housing-grid > a > .source-photo {
    grid-column: 2;
    grid-row: 1;
}
.reference-home .housing-grid > a > div:last-child {
    grid-column: 1;
    grid-row: 1;
    padding: 18px;
}
.reference-home .housing-grid h3 {
    min-height: 0;
    font-size: clamp(18px, 1.6vw, 25px);
    overflow-wrap: anywhere;
}
.reference-home .comparison-side .source-photo { aspect-ratio: 317/210; }
.reference-home .comparison-side .comparison-caption { min-height: 100px; }
@media (max-width: 960px) {
    .reference-home .housing-grid > a { grid-template-columns: 1fr; }
    .reference-home .housing-grid > a > .source-photo,
    .reference-home .housing-grid > a > div:last-child { grid-column: auto; grid-row: auto; }
}
@media (max-width: 640px) {
    .reference-home .reference-hero { padding-top: 24px; }
    .reference-home .hero-motto { gap: 8px; }
    .reference-home .path-card { grid-template-columns: 1fr; }
    .reference-home .path-reference { min-height: 0; aspect-ratio: var(--crop-ratio); }
    .reference-home .path-reference img { width: var(--source-width); }
    .reference-home .candidate-card .path-reference img,
    .reference-home .employer-card .path-reference img { left: var(--source-left); }
}
/* Desktop composition from the final PDF, with independent text and controls. */
.bws-view-home .site-header .container { width: calc(100% - 48px); max-width: none; }
.site-header {
    position: sticky;
    top: 0;
}
body.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) {
    body.admin-bar .site-header { top: 0; }
}
.site-header .brand > span,
.site-header .brand small,
.site-header .header-actions { font-weight: 700; }
.site-header nav a {
    color: #fff8eb;
    font-weight: 700;
}
.bws-view-home .site-header nav { justify-content: center; flex: 1; gap: clamp(20px, 4vw, 64px); }
.reference-home .container { width: calc(100% - 60px); max-width: 1540px; }
.reference-home .reference-hero { padding: 36px 0 42px; }
.reference-home .reference-hero .globe-stage { max-width: 1460px; height: 400px; }
.reference-home .reference-hero canvas { height: 400px; width: 540px; left: calc(50% - 270px); }
.reference-home .reference-hero .country { width: clamp(175px, 22vw, 350px); min-height: 68px; font-size: clamp(16px, 1.55vw, 25px); }
.reference-home .reference-hero .country-de,
.reference-home .reference-hero .country-gr { top: 20%; }
.reference-home .reference-hero .country-it,
.reference-home .reference-hero .country-nl { top: 57%; }
.reference-home .reference-hero .orbit { top: 35%; width: 58%; left: 21%; }
.reference-home .reference-hero .orbit-two { top: 37%; width: 49%; left: 26%; }
.reference-home .hero-bottom .lead { font-size: clamp(15px, 1.3vw, 21px); max-width: 1050px; }
.reference-home .hero-bottom .button { min-width: min(100%, 300px); font-size: 18px; }
.reference-home .section-heading { margin-bottom: 28px; }
.reference-home .comparison-section { background: #fbf6ed; }
.reference-home .comparison-panel { position: relative; border: 1px solid #e7dac2; background: #f8f0e4; padding: 9px; }
.reference-home .comparison-panel header { padding: 4px 12px 12px; }
.reference-home .photo-comparison { border-radius: 12px; overflow: hidden; align-items: stretch; }
.reference-home .comparison-side { display: block; aspect-ratio: auto; min-height: clamp(160px, 20vw, 315px); }
.reference-home .comparison-side .source-photo { position: absolute; inset: 0; height: 100%; }
.reference-home .comparison-side .source-photo img { min-height: 0; }
.reference-home .comparison-side .comparison-caption { position: absolute; inset: auto 0 0; min-height: 0; background: #141b23e8; }
.reference-home .path-card { position: relative; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
.reference-home .path-reference { align-self: start; }
.reference-home .path-content { display: grid; align-content: center; padding: 18px 24px 25px 12px; }
.reference-home .path-content .button { justify-self: stretch; font-size: 15px; }
.reference-home .benefit-strip { gap: 20px; }
.reference-home .paths .benefit-strip > span + span { border-left: 1px solid #d5b17c; padding-left: 20px; }
.reference-home .process-grid { grid-template-columns: 1fr 1fr 1.3fr 1fr 1fr; gap: 14px; padding-top: 22px; }
.reference-home .process-card:nth-child(3) { margin-top: -18px; border-color: #ecc88b; box-shadow: 0 0 20px #bf8b4975; }
.reference-home .process-card .round-icon { color: #f4d397; background: #111820; border: 1px solid #d7a968; }
.reference-home .process-card .source-photo { aspect-ratio: 1/1.05; }
.reference-home .benefits-grid { gap: 52px 18px; }
.reference-home .benefit-card { border-color: #dfc69c; box-shadow: 0 8px 22px #72501d12; }
.reference-home .sector-band .sector-card:nth-child(2) { border: 1px solid #efca90; box-shadow: inset 0 0 12px #e9bb6677; }
.reference-home .sector-band .sector-card:nth-child(2) .sector-action { background: #efc680; color: #142637; }
.reference-home .sector-card .sector-action { display: block; padding: 7px 14px; }
.reference-home .sector-card .source-photo { aspect-ratio: 1.42; }
.reference-home .profile-preview {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    max-width: 62rem;
    margin-inline: auto;
}
.reference-home .profile-preview > .feature-reference {
    width: 100%;
    max-width: 25rem;
    justify-self: end;
    mask-image: linear-gradient(90deg, #000 76%, transparent);
}
.reference-home .profile-preview-card { transform: perspective(70rem) rotateY(-4deg); }
.profile-preview-card {
    z-index: 1;
    min-width: 0;
    margin-left: clamp(-3rem, -3vw, -1rem);
    border: 1px solid #ebd1a1;
    border-radius: 24px;
    padding: clamp(1rem, 3vw, 2.75rem);
    background: linear-gradient(145deg, #fffaf0f5, #fffffff5);
    box-shadow: 0 12px 35px #82531224;
}
.profile-preview-card h3 {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 0 0 .75rem;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
}
.profile-preview-card h3 svg {
    box-sizing: content-box;
    flex: none;
    padding: .65rem;
    border-radius: 50%;
    color: #fff8eb;
    background: linear-gradient(#c99331, #805212);
}
.reference-home .profile-preview .profile-fields {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}
.profile-fields li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .7rem;
    padding: .9rem 0;
    border-bottom: 1px solid #ebdfca;
}
.profile-fields li:last-child { border-bottom: 0; }
.profile-fields li svg { color: #9a651a; }
.profile-actions { justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
@media (max-width: 640px) {
    .reference-home .profile-preview { grid-template-columns: 1fr; }
    .reference-home .profile-preview > .feature-reference {
        width: 74%;
        justify-self: center;
        mask-image: linear-gradient(#000 73%, transparent);
    }
    .profile-preview-card { margin: -2rem 0 0; }
    .reference-home .profile-preview-card { transform: none; }
}
.reference-home .visa-feature { background: #0b1218; }
.visa-photo-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; padding: 8px 19px; }
.visa-photo-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #bba078;
    border-radius: 17px;
    overflow: hidden;
    background: #121b22;
    text-align: left;
    clip-path: polygon(12% 0,100% 0,88% 100%,0 100%);
}
.visa-photo-card .source-photo { aspect-ratio: 1.12; }
.visa-photo-copy { display: grid; gap: 10px; padding: 12px 16% 24px; }
.visa-photo-copy svg, .visa-photo-copy span { color: #e7bf82; }
.visa-photo-copy h3 { margin: 0; font-size: clamp(18px, 1.6vw, 27px); overflow-wrap: anywhere; }
.visa-actions, .housing-actions { justify-content: center; gap: 18px; }
.reference-home .opportunity-links { border-top: 2px solid #c7974c; }
.reference-home .opportunity-links a { min-height: 50px; padding: 10px 14px; }
.reference-home .opportunity-copy { padding-bottom: 18px; }
.reference-home .matching-section .split { grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); }
.reference-home .matching-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reference-home .matching-steps li { position: relative; padding: 20px 12px; }
.reference-home .matching-steps li:not(:last-child)::after { content: "›"; position: absolute; top: 45%; right: -15px; color: #b37b27; font-size: 24px; }
.matching-banner { display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 20px; margin-top: 24px; }
.matching-banner .benefit-strip { flex-direction: column; margin: 0; }
.reference-home .housing-feature { background: #0a1927; color: #fff; }
.reference-home .housing-feature .lead { color: #e4e8eb; }
.reference-home .housing-feature .eyebrow { color: #e5be80; }
.reference-home .housing-heading { padding: 45px 53% 45px 0; min-height: clamp(250px, 30vw, 460px); }
.reference-home .housing-reference { width: 57%; z-index: 0; }
.reference-home .housing-heading > :not(.source-photo) { position: relative; }
.reference-home .housing-grid > a { color: #142a3c; border-color: #e8be79; }
.reference-home .faq-section .split { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: 24px; }
.reference-home .faq-section .contact-card { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: stretch; }
.reference-home .faq-section .contact-reference { aspect-ratio: auto; border-radius: 0; }
.reference-home .faq-section .contact-content { padding: clamp(18px, 2vw, 32px); overflow-wrap: anywhere; }
.reference-home .faq-section .contact-content h2 { font-size: clamp(24px, 3vw, 46px); }
.reference-home .employer-feature { padding-bottom: 0; }
.reference-home .employer-feature .feature-reference { border-radius: 45% 20px 20px 15%; }
.reference-home .employer-industries { width: 100%; max-width: none; background: #f9f6ef; color: #142432; padding: 28px max(20px, calc((100% - 1540px)/2)); }
.reference-home .employer-industries .section-heading { display: none; }
.reference-home .employer-industries .sector-card { background: #fff; color: #142432; box-shadow: 0 4px 12px #11182012; }
.reference-home .employer-industries .sector-card .source-photo { aspect-ratio: .92; }
@media (max-width: 960px) {
    .reference-home .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .reference-home .process-card:nth-child(3) { margin-top: 0; }
    .visa-photo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .reference-home .matching-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reference-home .faq-section .contact-card { grid-template-columns: 1fr; }
    .reference-home .faq-section .contact-reference { aspect-ratio: var(--crop-ratio); }
    .reference-home .reference-hero .country { width: 175px; }
}
@media (max-width: 640px) {
    .bws-view-home .site-header .container { width: calc(100% - 36px); }
    .reference-home .container { width: calc(100% - 32px); }
    .reference-home .reference-hero .globe-stage { height: 340px; }
    .reference-home .reference-hero canvas { height: 300px; width: 340px; left: calc(50% - 170px); }
    .reference-home .reference-hero .country { width: min(44%, 145px); font-size: 12px; min-height: 0; }
    .reference-home .reference-hero .country-de,
    .reference-home .reference-hero .country-gr { top: 238px; }
    .reference-home .reference-hero .country-it,
    .reference-home .reference-hero .country-nl { top: 287px; }
    .reference-home .reference-hero .orbit { width: 100%; left: 0; }
    .reference-home .reference-hero .orbit-two { width: 80%; left: 10%; }
    .reference-home .hero-bottom .button { min-width: 0; font-size: 13px; }
    .reference-home .path-card, .reference-home .faq-section .split,
    .reference-home .matching-section .split, .matching-banner { grid-template-columns: 1fr; }
    .reference-home .path-content { padding: 20px; }
    .reference-home .paths .benefit-strip > span + span { border-left: 0; padding-left: 0; }
    .reference-home .process-grid, .visa-photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .visa-photo-card { clip-path: none; }
    .visa-photo-row { padding: 0; }
    .reference-home .housing-heading { padding: 0; min-height: 0; }
    .reference-home .housing-reference { width: 100%; }
    .reference-home .comparison-side .comparison-caption { position: relative; padding: 8px; }
    .reference-home .comparison-side .source-photo { position: relative; height: auto; }
    .reference-home .matching-banner .benefit-strip { align-items: flex-start; }
}
.source-photo { container-type: inline-size; }
.source-photo img { clip-path: inset(var(--source-inset)); }
.reference-home .hero-heading h1 span,
.reference-home .hero-heading h1 strong { display: block; }
.reference-home .hero-heading h1 span { font-size: .65em; font-weight: 400; letter-spacing: .16em; }
.reference-home .hero-heading h1 strong { font-weight: 800; }
.reference-home .reference-hero .globe-stage,
.reference-home .reference-hero canvas { height: 376px; }
.reference-home .faq-list details { padding-block: 10px; margin-bottom: 7px; }
.reference-home .faq-section .contact-card { align-items: center; }
.reference-home .faq-section .contact-reference { aspect-ratio: var(--crop-ratio); }
.reference-home .housing-heading { overflow: hidden; }
.reference-home .housing-reference { border-radius: 0; }
.visa-photo-copy h3 { font-size: clamp(16px, 1.4vw, 23px); }
@media (max-width: 640px) {
    .reference-home .reference-hero { background-position: center, 86% center; }
    .reference-home .reference-hero .globe-stage { height: 340px; }
    .reference-home .reference-hero canvas { height: 300px; }
}
@media (min-width: 961px) {
    .reference-home .hero-heading h1 { max-width: 1330px; }
    .reference-home .hero-heading h1 strong { font-size: clamp(34px, 4vw, 64px); }
    .reference-home .reference-hero { padding-bottom: 25px; }
    .reference-home .paths .section-heading { max-width: 1350px; }
    .reference-home .paths .path-content .button { margin-left: -35%; position: relative; }
}
.opportunity-links .opportunity-thumbnail { flex: 0 0 74px; border-radius: 5px; }
.opportunity-links .opportunity-label { flex: 1; }
.carousel-dots { display: flex; gap: 9px; justify-content: center; padding: 8px 0; }
.carousel-dots button { width: 12px; height: 12px; border-radius: 50%; padding: 0; background: #81848a; }
.carousel-dots button[aria-pressed="true"] { background: #d7a75d; }
.reference-home .process-card:nth-child(3) .round-icon { margin-top: -28px; position: relative; z-index: 1; }
.reference-home .sector-band .sector-card:nth-child(2) { border-color: #b7945755; box-shadow: none; }
.reference-home .sector-band .sector-card:nth-child(2) .sector-action { background: transparent; color: inherit; }
.reference-home .sector-band .sector-card:nth-child(3) { border-color: #efca90; box-shadow: inset 0 0 12px #e9bb6677; }
.reference-home .sector-band .sector-card:nth-child(3) .sector-action { background: #efc680; color: #142637; }
@media (min-width: 961px) {
    .reference-home .sector-band .sector-grid.carousel-track {
        grid-auto-columns: calc((100% - 64px) / 4.85);
        grid-template-columns: repeat(2, minmax(0, .19fr)) minmax(0, .25fr) minmax(0, .19fr) minmax(0, .24fr);
    }
}
/* Keep the sphere inside its own stage and the front orbit above it. */
.reference-home .reference-hero .globe-stage #globe {
    width: min(76vw, 420px);
    height: auto;
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: none;
    clip-path: circle(50%);
    z-index: 2;
}
.reference-home .globe-fallback {
    position: absolute;
    width: min(65vw, 365px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    clip-path: ellipse(50% 49% at 50% 50%);
    z-index: 2;
}
.reference-home .globe-stage:has(.globe-ready) .globe-fallback { display: none; }
.reference-home .reference-hero .orbit {
    border-color: #edc18b9c;
    box-shadow: 0 0 7px #ffc88c70, inset 0 0 5px #ffc88c45;
}
.reference-home .reference-hero .orbit-two { z-index: 2; }
.reference-home .reference-hero .globe-base {
    width: 43%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 6px;
    border-color: #edba818c;
    box-shadow: 0 0 14px #f5b7757a, inset 0 0 16px #f5b77559;
}
@media (max-width: 640px) {
    .reference-home .reference-hero .globe-stage #globe {
        width: min(67vw, 260px);
        top: 118px;
    }
    .reference-home .globe-fallback {
        width: min(58vw, 228px);
        top: 118px;
    }
    .reference-home .reference-hero .globe-base { width: 74%; bottom: 112px; }
}

/* Uploaded photos keep the same frame as their default crop. */
.reference-home .source-photo-custom img,
.source-photo-custom img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: none;
}
@media (min-width: 641px) {
    .menu-toggle-icon { margin-inline-start: .35em; }
}

/* Uniform frames crop the source photograph without changing its proportions. */
.reference-home .comparison-panel {
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
    grid-row: span 2;
}
.reference-home .photo-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: clamp(120px, 15vw, 235px) auto;
    row-gap: 0;
}
.reference-home .comparison-side {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    min-height: 0;
}
.reference-home .comparison-side .source-photo {
    position: absolute;
    height: 100%;
}
.reference-home .comparison-side .comparison-caption {
    position: relative;
    grid-row: 2;
    align-self: stretch;
    inset: auto;
    padding: 12px;
}
.sector-section .sector-grid.carousel-track { scrollbar-width: none; }
.reference-home .sector-section .sector-grid.carousel-track { scrollbar-width: none; }
.sector-section .carousel-track::-webkit-scrollbar { display: none; }
.sector-section .sector-card > .source-photo {
    height: clamp(190px, 23vw, 340px);
    aspect-ratio: auto;
}
.reference-home .comparison-side .source-photo,
.sector-section .sector-card > .source-photo {
    container-type: size;
}
.reference-home .comparison-side .source-photo:not(.source-photo-custom) img,
.sector-section .sector-card > .source-photo:not(.source-photo-custom) img {
    width: max(var(--source-width), var(--source-height-cover));
    height: auto;
    left: 50%;
    top: 50%;
    translate: var(--source-center);
}
@media (max-width: 640px) {
    .reference-home .photo-comparison { grid-template-rows: 135px auto; }
    .reference-home .comparison-side .comparison-caption { padding: 9px; }
}

/* Fill the existing frame with an undistorted crop of the detailed photograph. */
.source-photo-detailed { container-type: size; }
.reference-home .source-photo-detailed img {
    width: max(var(--source-width), var(--source-height-cover));
    height: auto;
    left: 50%;
    top: 50%;
    translate: var(--source-center);
}

.reference-home :is(.comparison-section, .paths, .benefits-section, .profile-feature, .opportunities, .matching-section, .faq-section, .employer-industries) {
    background: url("ivory-waves.svg") center top / max(100%, 54rem) auto no-repeat #fdfaf5;
}
.reference-home :is(.paths, .benefits-section, .matching-section) {
    position: relative;
    isolation: isolate;
}
.reference-home :is(.paths, .benefits-section, .matching-section)::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: clamp(12rem, 23vw, 20rem);
    background: url("ivory-waves.svg") center top / max(100%, 54rem) auto no-repeat;
    transform: rotate(180deg);
    pointer-events: none;
}
.reference-home :is(.process-section, .sector-band, .visa-feature, .housing-feature, .employer-feature) {
    background: url("navy-arcs.svg") right bottom / max(100%, 52rem) auto no-repeat,
        radial-gradient(ellipse at 85% 8%, #172734, transparent 68%) #0a141d;
}
.reference-home :is(.process-section, .employer-feature) {
    background-position: right top, center;
}

.reference-home .section-heading em {
    color: #90601c;
    font-style: normal;
}
.reference-home :is(.section-heading h2, .career-actions h3) { overflow-wrap: anywhere; }
.reference-home :is(.process-section, .sector-band) .section-heading .lead { color: #e1e7eb; }
.reference-home .paths .section-heading h2 { text-wrap: balance; }
.reference-home .paths .path-card { border-color: #e1c590; }
.reference-home .paths .path-content > svg { margin-bottom: .35rem; }
.reference-home .visa-feature .section-heading em { color: #edc88b; }
.reference-home .process-grid.carousel-track {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding: 18px 2px 12px;
}
.reference-home .process-grid.carousel-track::-webkit-scrollbar { display: none; }
.reference-home .process-grid .process-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    transform: none;
    scroll-snap-align: start;
}
.reference-home .process-grid.carousel-track .process-card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
}
.reference-home .process-grid .source-photo { width: 100%; height: clamp(10rem, 16vw, 17rem); aspect-ratio: auto; }
.reference-home .process-grid .source-photo:not(.source-photo-custom) img {
    width: max(var(--source-width), var(--source-height-cover));
    left: 50%;
    top: 50%;
    translate: var(--source-center);
}
.reference-home .process-grid .source-photo { container-type: size; }
.reference-home .process-grid .round-icon { flex: none; }
.reference-home .process-grid h3 { font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.reference-home .benefit-card { padding: 0 clamp(.85rem, 2vw, 1.75rem) 1rem; }
.reference-home .benefit-card h3 { margin-bottom: .55rem; }
.reference-home .benefit-card p { margin-bottom: .5rem; }
.sector-description { margin: .5rem 1rem .75rem; font-size: .9rem; line-height: 1.45; }
.reference-home .sector-card { display: flex; flex-direction: column; align-items: center; }
.reference-home .sector-card > svg { flex: none; }
.reference-home .sector-card > .sector-action { align-self: stretch; margin-top: auto; }
.sector-requirements { margin: 1.5rem 0; }
.career-actions > div { position: relative; isolation: isolate; overflow: hidden; padding-right: 30%; }
.career-actions > div > svg { color: #e4bc76; width: 2rem; height: 2rem; margin-bottom: .5rem; }
.career-explore::before, .career-start > .source-photo {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: 42%;
    height: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 52%);
}
.career-explore::before {
    content: "";
    background: url("greece-outline.svg") right center / contain no-repeat;
}
.career-start > .source-photo { container-type: size; }
.career-support, .profile-benefits { flex-wrap: wrap; }
.profile-example { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center; margin-bottom: .65rem; }
.profile-example label { grid-column: 1 / -1; font-size: .8rem; color: #725629; }
.profile-example progress { margin: 0; accent-color: #a86d1d; }
.visa-photo-copy p { font-size: .82rem; margin: 0; line-height: 1.45; }
.visa-topic-grid .visa-topic { border: 1px solid #dcc8a4; border-radius: 12px; padding: 1rem; scroll-margin-top: 1rem; }
.visa-topic h4 { margin: 0 0 .5rem; }
.visa-topic p { margin: 0; }
.visa-information > .button { margin-top: 1rem; }
.opportunity-image { position: relative; overflow: hidden; border-bottom: 2px solid #c7974c; border-radius: 0 0 50% 5% / 0 0 12% 3%; }
.opportunity-icon {
    position: absolute;
    inset: 1rem 1rem auto auto;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #fffaf0;
    color: #90601c;
}
.opportunity-image .source-photo { aspect-ratio: 1.55; }
.opportunity-image .source-photo-detailed img { top: 0; translate: var(--source-top-center); }
.reference-home .opportunity-grid { row-gap: 0; }
.reference-home .opportunity-copy { min-height: 0; }
.reference-home .opportunity-grid article {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    gap: 0;
}
.opportunity-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .65rem; padding: .8rem 1rem 0; }
.opportunity-list-heading h4 { margin: 0; }
.opportunity-list-heading a { font-size: .8rem; text-decoration: underline; }
.reference-home .opportunity-links { border-top: 0; }
.matching-steps li { min-width: 0; overflow-wrap: anywhere; }
.reference-home .matching-banner { border: 1px solid #e6d5b6; border-radius: 18px; overflow: hidden; padding-right: 1rem; background: #fff8ed; }
.reference-home .matching-banner .benefit-strip { padding: 1rem; }
.reference-home .housing-heading .housing-reference { mask-image: linear-gradient(90deg, transparent, #000 24%); }
.reference-home .faq-section .contact-hours { margin-bottom: .8rem; }
.reference-home .faq-section .contact-card {
    align-self: start;
    align-items: stretch;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}
.reference-home .faq-section .contact-reference {
    aspect-ratio: auto;
    min-height: 0;
}
@media (max-width: 960px) {
    .reference-home .faq-section .contact-card { grid-template-columns: minmax(0, 1fr); }
    .reference-home .faq-section .contact-reference {
        height: clamp(180px, 45vw, 270px);
    }
    .reference-home .faq-section .contact-reference img { object-position: center 33%; }
}
.contact-fact {
    display: grid;
    grid-template-columns: 1.3rem minmax(0, 1fr);
    align-items: start;
    gap: .65rem;
    margin-bottom: .8rem;
}
.contact-fact svg { width: 1.15rem; height: 1.15rem; color: #edc88b; }
.reference-home .contact-fact :is(a,p) { margin: 0; }
.reference-home .employer-feature > .split {
    background: url("navy-arcs.svg") right bottom / 80% auto no-repeat;
    border-bottom: 1px solid #af884d80;
}
.reference-home .employer-feature .benefit-strip { justify-content: flex-start; flex-wrap: wrap; }
.footer .footer-motto { color: #efd1a0; letter-spacing: .08em; }
.footer-socials { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.footer-socials a {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e0be8177;
    border-radius: 50%;
    font-weight: 700;
}
@media (max-width: 960px) {
    .reference-home .process-grid.carousel-track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(12rem, 43%); }
}
@media (max-width: 640px) {
    .reference-home .opportunity-grid { row-gap: 1rem; }
    .reference-home .opportunity-grid article { grid-template-rows: auto; grid-row: auto; }
    .reference-home .matching-banner { padding-right: 0; padding-bottom: 1rem; }
    .reference-home .matching-section .split { grid-template-columns: minmax(0, 1fr); }
    .reference-home .matching-steps li::after { display: none; }
    .reference-home .matching-steps { min-width: 0; }
    .reference-home .matching-banner > .button { justify-self: center; }
    .reference-home .housing-heading .housing-reference { mask-image: linear-gradient(#000 80%, transparent); }
}

.footer {
    isolation: isolate;
    background: #05121d;
    padding-top: clamp(2rem, 4vw, 3.5rem);
}
.footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: min(58%, 68rem);
    background: url("footer-europe.webp") right center / cover no-repeat;
    mask-image: linear-gradient(90deg, transparent 12%, #000 52%);
}
.footer .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
    gap: 1.25rem;
    min-height: 0;
    padding-right: 0;
}
.footer .footer-grid > div { min-width: 0; }
.footer .footer-grid > div:nth-child(4) { display: block; }
.footer .footer-grid .brand { flex-wrap: wrap; gap: .6rem; }
.footer .footer-greece {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    min-height: 13rem;
    padding: 0 0 1rem;
    background: none;
    text-align: right;
}
.footer .footer-greece > span {
    max-width: 11rem;
    color: #f4dca8;
    font-size: .7rem;
    line-height: 1.5;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.footer .footer-destination { max-width: 14rem; }
.footer .footer-destination p {
    color: #f4dca8;
    margin: 0 0 .35rem;
}
.footer .footer-destination h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.1;
}
.footer .footer-destination::after {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    margin-top: .8rem;
    background: #e8bf7b;
}
.footer .footer-bottom {
    margin-top: 1rem;
    justify-content: flex-start;
    font-size: .75rem;
}
@media (max-width: 860px) {
    .footer::before {
        inset: auto 0 0;
        width: 100%;
        height: 23rem;
        mask-image: linear-gradient(180deg, transparent, #000 33%, #000 75%, transparent);
    }
    .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer .footer-grid > div:first-child,
    .footer .footer-greece { grid-column: 1 / -1; }
    .footer .footer-bottom { background: #05121de8; }
}

.cookie-settings {
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    text-align: left;
    text-decoration: underline;
}
.cookie-notice,
.cookie-preferences {
    width: min(30rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 1.25rem;
    border: 1px solid #c6a16a;
    border-radius: 14px;
    background: #102638;
    color: #fff;
    box-shadow: 0 6px 28px #0005;
}
.cookie-notice {
    position: fixed;
    z-index: 1000;
    inset: auto 0 max(1rem, env(safe-area-inset-bottom)) 0;
    margin-inline: auto;
    width: min(72rem, calc(100% - 2rem));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}
.cookie-preferences { margin: auto; }
.cookie-preferences::backdrop { background: #050d14b3; }
.cookie-notice h2,
.cookie-preferences h2 {
    margin: 0 0 .5rem;
    font-size: 1.35rem;
}
.cookie-notice p,
.cookie-preferences p { margin: 0 0 .75rem; }
.cookie-notice p { margin: 0; }
.cookie-notice a,
.cookie-preferences a { text-decoration: underline; }
.cookie-notice .button,
.cookie-preferences .button {
    min-height: 44px;
    padding: .6rem 1rem;
    border-radius: 8px;
    font-size: .875rem;
    text-align: center;
}
.cookie-notice-actions .cookie-secondary {
    color: #fff;
    background: transparent;
    border: 1px solid #c6a16a;
}
.cookie-category {
    border-block: 1px solid #ffffff38;
    padding: .75rem 0;
    margin: .75rem 0;
}
.cookie-category h3 { font-size: 1rem; margin: 0 0 .25rem; }
.cookie-category p { margin: 0; }
.cookie-category-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .25rem 1rem;
}
.cookie-category-heading span { color: #f0cd8d; font-size: .875rem; }
.cookie-notice-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}
.cookie-notice .cookie-notice-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}
@media (max-width: 960px) {
    .cookie-notice { display: block; }
    .cookie-notice .cookie-notice-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 1rem;
    }
    .cookie-notice-actions [data-cookie-settings] { grid-column: 1 / -1; }
}
