@font-face {
    font-family: 'INGMe';
    src: url('../fonts/INGMe-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'INGMe-Bold';
    src: url('../fonts/INGMe-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: oblique;
}

@font-face {
    font-family: 'INGMe-Italic';
    src: url('../fonts/INGMe-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'INGMe-BoldItalic';
    src: url('../fonts/INGMe-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'ING display';
    src: url('../fonts/INGdisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
  --brand-orange: #FF6200;
  --brand-purple: #7724FD;
  --brand-fuscha: #D40199;
  --brand-white: #FFF;
  --bg-white: #FFF;
  --text-dark: #4D0021;
  --text-white: #FFF;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-white);
    font-family: 'INGMe', sans-serif;
    transform-origin: top center;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

mark {
    background-color: transparent;
    color: var(--brand-orange);
    font-weight: inherit;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--brand-orange);
    opacity: 1;
    transform: scale(1);
    z-index: 999;
    overflow: hidden;
}

.preloader img {
    display: block;
    width: 30%;
    height: 30%;
    margin: 0;
}

@keyframes fadeOut {
    0% { 
        opacity: 1; 
        transform: scale(1);
    }
    80% { 
        opacity: 1; 
        transform: scale(1);
    }
    100% { 
        opacity: 0; 
        transform: scale(4); /* Slight zoom out for cinematic effect */
    }
}

.ad-creative {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    padding: 0;
    background-color: var(--brand-white);
    overflow: visible;
    width: 1080px;
    height: 1960px;
    transform-origin: top center;
    flex-shrink: 0;
}

.ad-creative h1 {
    margin: 0rem 0 1.5rem 0;
    padding: 0;
}

.ad-creative .ing-logo {
    position: absolute;
    top: 3.125rem;
    right: 3.125rem;
    width: 11.25rem;
    height: auto;
}

.ad-creative .ing-logo img {
    width: 100%;
    height: auto;
}

.ad-creative .intro-text {
    position: absolute;
    left: 6rem;
    top: 13rem;
    width: calc(100% - 6rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.ad-creative .headline {
    font-family: 'ING display', sans-serif;
    font-size: 12rem;
    line-height: .9;
    color: var(--brand-orange);
    text-align: left;
    contain: layout style paint;
    will-change: contents;
}

.ad-creative .sub-headline {
    font-family: 'INGMe-Bold', sans-serif;
    font-size: 3.5rem;
    line-height: 1.25;
    color: var(--text-dark);
    text-align: left;
    max-width: 85%;
    margin: 2rem 0 0 0;
    contain: layout style paint;
    will-change: contents;
}

.ad-creative .starter-image {
    position: absolute;
    background-size: contain;;
    bottom: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    z-index: 1;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.ad-creative .starter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

.starter-url {
    position: absolute;
    background-image: url('../images/blob_m.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 33rem;
    min-height: 6rem;
    color: var(--text-white);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'INGMe-Bold', sans-serif;
    font-size: 3.5rem;
    left: 6rem;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.starter-info {
    position: absolute;
    top: 2rem;
    left: 10rem;
    width: 28rem;
    min-height: 10rem;
    text-align: left;
    font-family: 'INGMe', sans-serif;
    font-size: 1.5rem;
    z-index: 10;
    color: var(--brand-fuscha);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 4.5rem;
    margin: 0;
    will-change: transform, opacity;
    contain: layout style;
}

.starter-info::before {
  content:"";
  position:absolute;
  inset:0;
  background-image: url('../images/blob_xs_white.png');
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index:-1;
}

.starter-content {
    margin: 0;
    padding: 0;
}

.starter-content h2 {
    margin: 0;
    padding: 0;
    font-family: 'INGMe', sans-serif;
    font-size: clamp(2.7rem, 3vw, 3rem);
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.starter-content h3 {
    margin: 0;
    padding: 0;
    font-family: 'INGMe-Bold', sans-serif;
    font-weight: bold;
    font-size: clamp(2.7rem, 3vw, 3rem);
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.starter-content h4 {
    margin: 0;
    padding: 0;
    font-family: 'INGMe', sans-serif;
    font-size: clamp(2.7rem, 3vw, 3rem);
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;

    overflow: hidden;
}

footer {
    position: absolute;
    bottom: 2%;
    left: 3rem;
    font-family: 'INGMe-Bold', sans-serif;
    text-align: left;
    font-size: 2rem;
    color: var(--text-white);
    z-index: 100;
}

/* ==================== XL Screen Optimizations (480x832) ==================== */
body.xl-screen {
    background-color: var(--bg-white);
    overflow: hidden;
}

body.xl-screen .ad-creative {
    transform-origin: top center;
    will-change: transform;
}

/* Ensure smooth scaling on XL screens */
body.xl-screen * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}