/* AMOIA Group — landing portal
   Three full-height vertical columns. Mobile: stacks into rows. */

/* Self-hosted fonts (DSGVO-clean — no Google CDN) */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-300-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/inter-300-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/inter-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
    --gold:        #C4A265;
    --gold-soft:   #D9BC83;
    --ink:         #1a1a1a;
    --paper:       #f6f3ec;
    --paper-mute:  rgba(255,255,255,0.78);
    --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.page-home,
body.page-home main { height: 100vh; }

a { color: inherit; text-decoration: none; }

/* ---------- topbar (logo + lang switcher) ---------- */

.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    pointer-events: none;
}

.topbar__home,
.lang-switch { pointer-events: auto; }

.topbar__home {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(0,0,0,0.45);
    padding: .35rem .55rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity .25s ease;
}
.topbar__home:hover { opacity: .8; }
.topbar__home img { display: block; height: 28px; width: 28px; object-fit: contain; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .7rem;
    background: rgba(0,0,0,0.45);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: var(--sans);
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.lang-switch__btn {
    padding: .15rem .35rem;
    transition: color .2s ease;
}
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn.is-active { color: var(--gold); }
.lang-switch__sep { color: rgba(255,255,255,0.3); }

/* ---------- portal (3 columns) ---------- */

.portal {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.portal__cell {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    display: block;
    color: inherit;
    isolation: isolate;
    transition: opacity .35s ease, flex-basis .6s ease;
}

.portal__cell + .portal__cell {
    border-left: 1px solid rgba(0,0,0,0.06);
}

/* elissar-style hover: dimmed feedback on the hovered cell */
.portal__cell:not(.portal__cell--soon):hover { opacity: .92; }

/* background layer */
.portal__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
    z-index: 1;
}
.portal__cell:not(.portal__cell--soon):hover .portal__bg { transform: scale(1.04); }

/* Per-cell backgrounds — WebP with JPG fallback via image-set (modern browsers
   pick WebP automatically; legacy browsers fall back to the JPG declaration) */
.portal__bg--ddd {
    background-image: url('../img/ddd2.jpg');
    background-image: image-set(
        url('../img/ddd2.webp') type('image/webp') 1x,
        url('../img/ddd2.jpg')  type('image/jpeg') 1x);
    background-image: -webkit-image-set(
        url('../img/ddd2.webp') 1x,
        url('../img/ddd2.jpg')  1x);
}
.portal__bg--amoia {
    background-image: url('../img/amoia_bg.jpg');
    background-image: image-set(
        url('../img/amoia_bg.webp') type('image/webp') 1x,
        url('../img/amoia_bg.jpg')  type('image/jpeg') 1x);
    background-image: -webkit-image-set(
        url('../img/amoia_bg.webp') 1x,
        url('../img/amoia_bg.jpg')  1x);
    background-size: cover;
    background-position: center;
}
.portal__bg--ppp {
    background-image: url('../img/ppp-entrance.jpg');
    background-image: image-set(
        url('../img/ppp-entrance.webp') type('image/webp') 1x,
        url('../img/ppp-entrance.jpg')  type('image/jpeg') 1x);
    background-image: -webkit-image-set(
        url('../img/ppp-entrance.webp') 1x,
        url('../img/ppp-entrance.jpg')  1x);
}

/* veil — readability layer */
.portal__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.portal__veil--dark {
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.75) 100%);
}

/* AMOIA cell — light vignette: keep the warm bg visible, only soft dim around
   the center so the gold-shimmer logo + wordmark stay focal */
.portal__cell--amoia .portal__veil--dark {
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0.30) 0%,
            rgba(0,0,0,0.42) 50%,
            rgba(0,0,0,0.30) 100%);
}

/* PPP cell — softer veil to keep the entrance image readable, darken edges for legibility */
.portal__cell--ppp .portal__veil--dark {
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0.45) 0%,
            rgba(0,0,0,0.30) 35%,
            rgba(0,0,0,0.40) 65%,
            rgba(0,0,0,0.65) 100%);
}

/* content layer */
.portal__content {
    position: relative;
    z-index: 3;
    height: 100%;
    padding: 6rem 2rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    gap: .9rem;
}

.portal__content--triple {
    justify-content: space-between;
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
    gap: 1.2rem;
}

/* header-style layout: small mark + wordmark up top, caption near bottom,
   nothing big in the middle — bg image breathes through */
.portal__content--header {
    justify-content: space-between;
    padding-top: var(--portal-pad-top, 12px);
    padding-bottom: var(--portal-pad-bottom, 48px);
    gap: var(--portal-gap, 19px);
}

/* layout zones */
.portal__top {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--portal-top-gap, .9rem);
    flex: 0 0 auto;
}
.portal__center {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.portal__caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    flex: 0 0 auto;
}

/* DDD mark — gold-shimmer via PNG mask (matches AMOIA + PPP marks) */
.ddd-mark {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}
.ddd-mark--large {
    width: clamp(180px, 26vw, 280px);
    height: clamp(180px, 26vw, 280px);
}
.ddd-mark--small {
    height: var(--ddd-mark-size, 68px);
    width: auto;
    aspect-ratio: 600 / 458;
    transform: translateY(var(--ddd-mark-y, 6px));
}
.amoia-mark--small {
    height: var(--amoia-mark-size, 93px);
    width: auto;
    aspect-ratio: 575 / 600;
    transform: translateY(var(--amoia-mark-y, 0px));
}
.ppp-mark--small {
    height: var(--ppp-mark-size, 72px);
    width: auto;
    aspect-ratio: 600 / 548;
    transform: translateY(var(--ppp-mark-y, 0px));
}

/* Unified wordmark — same size, weight, tracking across DDD / AMOIA / PPP so
   the three column headers align visually */
.ddd-wordmark,
.amoia-wordmark,
.ppp-wordmark {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.05rem, 1.5vw, 1.55rem);
    letter-spacing: .22em;
    text-transform: uppercase;
    line-height: 1;
}
.ddd-wordmark {
    font-size: var(--ddd-wordmark-size, 19px);
    letter-spacing: var(--ddd-wordmark-tracking, .2em);
    transform: translateY(var(--ddd-wordmark-y, 7px));
}
.amoia-wordmark {
    font-size: var(--amoia-wordmark-size, 19px);
    letter-spacing: var(--amoia-wordmark-tracking, .22em);
    transform: translateY(var(--amoia-wordmark-y, 0px));
}
.ppp-wordmark {
    font-size: var(--ppp-wordmark-size, 19px);
    letter-spacing: var(--ppp-wordmark-tracking, .22em);
    transform: translateY(var(--ppp-wordmark-y, 0px));
}

/* DDD veil — darker top so gold shimmer wordmark stays legible on sky;
   ease toward bottom kicker text */
.portal__veil--ddd {
    background: linear-gradient(180deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.30) 25%,
        rgba(0,0,0,0.10) 50%,
        rgba(0,0,0,0.30) 80%,
        rgba(0,0,0,0.55) 100%);
}

/* DDD column text overrides — gold kicker, light line */
.portal__cell--ddd .portal__kicker {
    background: linear-gradient(135deg,
        #AA771C 0%, #C6A44E 15%, #FCF6BA 30%, #D4B060 45%,
        #B38728 60%, #FCF6BA 75%, #AA771C 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
    animation: gold-shimmer 4.5s ease-in-out infinite;
}
.portal__cell--ddd .portal__line   { color: rgba(255,255,255,0.85); }
.portal__cell--ddd .portal__cta--dark {
    color: #fff;
    border-color: rgba(255,255,255,0.65);
}
.portal__cell--ddd:hover .portal__cta--dark {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

/* eyebrow / headline / line */
.portal__eyebrow {
    margin: 0;
    font-family: var(--sans);
    font-size: .72rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}
.portal__eyebrow--light { color: var(--gold-soft); }

.portal__kicker {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.6vw, 2.4rem);
    line-height: 1.1;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: .01em;
}

.portal__headline {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: .01em;
    color: #fff;
}

/* AMOIA mark — gold-shimmer via PNG mask */
.amoia-mark {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}
.amoia-mark--large { width: clamp(180px, 26vw, 280px); height: clamp(180px, 26vw, 280px); }
.amoia-mark::after,
.ppp-mark::after,
.ddd-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        #AA771C 0%,
        #C6A44E 15%,
        #FCF6BA 30%,
        #D4B060 45%,
        #B38728 60%,
        #FCF6BA 75%,
        #AA771C 100%);
    background-size: 300% auto;
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    animation: gold-shimmer 4.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 10px rgba(170, 119, 28, 0.45));
}
.amoia-mark::after {
    -webkit-mask-image: url('../img/amoia-mark.png');
            mask-image: url('../img/amoia-mark.png');
}
.ppp-mark::after {
    -webkit-mask-image: url('../img/ppp-mark.png');
            mask-image: url('../img/ppp-mark.png');
}
.ddd-mark::after {
    -webkit-mask-image: url('../img/ddd-mark.png');
            mask-image: url('../img/ddd-mark.png');
}

/* PPP mark — same gold-shimmer mask treatment */
.ppp-mark {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}
.ppp-mark--large {
    width: clamp(180px, 26vw, 280px);
    height: clamp(180px, 26vw, 280px);
}

/* gold-shimmer text fill (uses currentColor fallback if background-clip unsupported) */
.gold-shimmer-text {
    background: linear-gradient(135deg,
        #AA771C 0%,
        #C6A44E 20%,
        #FCF6BA 40%,
        #D4B060 60%,
        #B38728 80%,
        #AA771C 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
    animation: gold-shimmer 4.5s ease-in-out infinite;
}

@keyframes gold-shimmer {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

.portal__line {
    margin: 0;
    max-width: 28ch;
    font-size: .92rem;
    line-height: 1.55;
    color: rgba(0,0,0,0.7);
    font-weight: 300;
}
.portal__line--light {
    color: rgba(255,255,255,0.78);
    max-width: 32ch;
}

/* CTA chip */
.portal__cta {
    display: inline-flex;
    align-items: center;
    margin-top: .4rem;
    padding: .65rem 1.4rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.portal__cta--dark {
    color: var(--ink);
    border-color: rgba(0,0,0,0.55);
}
.portal__cta--gold {
    color: var(--gold);
    border-color: rgba(196,162,101,0.65);
}
.portal__cell:not(.portal__cell--soon):hover .portal__cta--dark {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.portal__cell:not(.portal__cell--soon):hover .portal__cta--gold {
    background: var(--gold);
    color: #0d0d0d;
    border-color: var(--gold);
}

/* Coming-soon cells: not clickable, no hover affordance */
.portal__cell--soon { cursor: default; }
.portal__cta--soon {
    pointer-events: none;
    letter-spacing: .3em;
    opacity: .9;
}

/* ---------- footer (legal links) ---------- */

.sitefooter {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    pointer-events: none;
}
.sitefooter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1.5rem;
    color: rgba(255,255,255,0.55);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.sitefooter__inner > * { pointer-events: auto; }
.sitefooter__brand { font-weight: 400; }
.sitefooter__nav {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.sitefooter__nav a { transition: color .2s ease; }
.sitefooter__nav a:hover { color: var(--gold); }

body.page-legal .sitefooter,
body.page-legal .topbar { background: transparent; }

/* ---------- legal pages (impressum / datenschutz) ---------- */

body.page-legal {
    background: var(--paper);
    color: var(--ink);
    height: auto;
    min-height: 100vh;
}

body.page-legal .topbar {
    background: rgba(246,243,236,0.92);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: auto;
}
body.page-legal .topbar__home,
body.page-legal .lang-switch {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(0,0,0,0.6);
}
body.page-legal .lang-switch__btn:hover { color: #000; }
body.page-legal .lang-switch__btn.is-active { color: var(--gold); }
body.page-legal .lang-switch__sep { color: rgba(0,0,0,0.2); }

body.page-legal .sitefooter { position: relative; }
body.page-legal .sitefooter__inner { color: rgba(0,0,0,0.45); }

.legal {
    padding: 7rem 1.5rem 4rem;
    display: flex;
    justify-content: center;
}
.legal__inner {
    max-width: 720px;
    width: 100%;
    line-height: 1.7;
    font-size: .98rem;
    color: rgba(0,0,0,0.78);
}
.legal__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: .02em;
    color: var(--ink);
    margin: 0 0 2.5rem;
}
.legal__card {
    margin: 0 0 2.5rem;
    padding: 1.6rem 1.8rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
}
.legal__card h2 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .02em;
    color: var(--ink);
    margin: 0 0 .55rem;
}
.legal__block {
    margin: 0;
    font-size: .98rem;
    line-height: 1.85;
    color: rgba(0,0,0,0.78);
}
.legal h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: .02em;
    color: var(--ink);
    margin: 2.4rem 0 .5rem;
}
.legal p { margin: 0 0 .9rem; }
.legal a { color: var(--gold); border-bottom: 1px solid rgba(196,162,101,0.4); }
.legal a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.legal__back { margin-top: 3rem; font-size: .85rem; }
.legal__back a { color: rgba(0,0,0,0.55); border-bottom: none; letter-spacing: .12em; text-transform: uppercase; }

.legal__intro {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(0,0,0,0.72);
    margin: 0 0 2rem;
    max-width: 60ch;
}
.legal__dl {
    margin: 1.4rem 0 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 2rem;
    row-gap: .55rem;
    font-size: .95rem;
    line-height: 1.5;
}
.legal__dl dt {
    color: rgba(0,0,0,0.55);
    font-family: var(--sans);
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    align-self: center;
}
.legal__dl dd {
    margin: 0;
    color: var(--ink);
    align-self: center;
}
@media (max-width: 600px) {
    .legal__dl { grid-template-columns: 1fr; row-gap: .15rem; }
    .legal__dl dd { margin-bottom: .8rem; }
}

/* ---------- responsive: 3 horizontal stripes (stacked rows), all visible ---------- */

@media (max-width: 900px) {
    /* Stack as 3 wide horizontal stripes covering the viewport — no scroll. */
    .portal {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
    }
    .portal__cell {
        flex: 1 1 0;
        height: auto;
        min-height: 0;
    }
    .portal__cell + .portal__cell {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.12);
    }

    /* Center mark + wordmark + CTA vertically in each short stripe */
    .portal__content--header {
        justify-content: center;
        --portal-pad-top: 1rem;
        --portal-pad-bottom: 1rem;
        --portal-gap: clamp(.4rem, 1.6vw, .85rem);
        --portal-top-gap: clamp(.45rem, 1.6vw, .9rem);
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    /* First stripe sits under the fixed topbar — give it breathing room */
    .portal__cell:first-child .portal__content--header {
        --portal-pad-top: clamp(3rem, 8vh, 4.5rem);
    }

    .ddd-mark--small   { --ddd-mark-size:   clamp(42px, 8.5vh, 64px); }
    .amoia-mark--small { --amoia-mark-size: clamp(56px, 11vh,  84px); }
    .ppp-mark--small   { --ppp-mark-size:   clamp(46px, 9vh,   68px); }

    .ddd-wordmark, .amoia-wordmark, .ppp-wordmark {
        line-height: 1;
    }
    .ddd-wordmark   { --ddd-wordmark-size:   clamp(14px, 3.4vw, 20px); --ddd-wordmark-tracking:   .18em; --ddd-wordmark-y: 4px; }
    .amoia-wordmark { --amoia-wordmark-size: clamp(14px, 3.4vw, 20px); --amoia-wordmark-tracking: .2em; }
    .ppp-wordmark   { --ppp-wordmark-size:   clamp(14px, 3.4vw, 20px); --ppp-wordmark-tracking:   .2em; }

    .portal__cta {
        margin-top: .35rem;
        padding: .45rem 1rem;
        font-size: .6rem;
        letter-spacing: .2em;
    }
    .portal__cta--soon { letter-spacing: .26em; }

    .topbar { padding: .55rem 1rem; }
    .lang-switch { font-size: .68rem; padding: .28rem .5rem; }
    .topbar__home img { width: 28px; height: 28px; }

    .sitefooter__inner { font-size: .55rem; padding: .5rem 1rem; gap: .5rem; }

    /* DDD: shift bg upward so the skyline shows in the short stripe */
    .portal__bg--ddd { background-position: center 18%; }

    /* PPP: nudge bg up so the entrance is centered in the wide-short stripe,
       and pad the last cell's bottom so its content clears the fixed footer */
    .portal__bg--ppp { background-position: center 35%; }
    .portal__cell:last-child .portal__content--header {
        --portal-pad-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .portal__content--header {
        --portal-gap: .5rem;
        --portal-top-gap: .5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .portal__cell:first-child .portal__content--header {
        --portal-pad-top: 3rem;
    }
    .ddd-mark--small   { --ddd-mark-size:   44px; }
    .amoia-mark--small { --amoia-mark-size: 62px; }
    .ppp-mark--small   { --ppp-mark-size:   50px; }

    .ddd-wordmark, .amoia-wordmark, .ppp-wordmark {
        font-size: 14px;
        letter-spacing: .16em;
    }
    .ddd-wordmark { transform: translateY(3px); }

    .portal__cta {
        padding: .42rem .9rem;
        font-size: .56rem;
        letter-spacing: .18em;
    }
    .portal__cta--soon { letter-spacing: .22em; }
}

/* ---------- subtle entrance ---------- */

@keyframes amoia-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.portal__cell { animation: amoia-fade-up .9s cubic-bezier(.2,.7,.2,1) both; }
.portal__cell--ddd   { animation-delay: .05s; }
.portal__cell--amoia { animation-delay: .15s; }
.portal__cell--ppp   { animation-delay: .25s; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .portal__cell { animation: none; }
    .portal__bg { transition: none; }
    .portal__cell:hover .portal__bg { transform: none; }
}
