:root {
    color-scheme: dark;
    --page-bg: #17191a;
    --page-surface: #212425;
    --page-surface-soft: #292c2e;
    --page-border: rgba(255, 255, 255, 0.09);
    --page-text: #f7f7f5;
    --page-muted: #a7aaab;
    --page-accent: #ec681c;
    --page-accent-soft: rgba(236, 104, 28, 0.14);
    --page-radius: 26px;
    --page-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--page-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 10% 5%, rgba(236, 104, 28, 0.12), transparent 28rem),
        radial-gradient(circle at 90% 30%, rgba(25, 117, 153, 0.09), transparent 30rem);
    content: "";
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    font: inherit;
}

a {
    color: var(--page-accent);
}

.public-container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.public-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--page-border);
    background: rgba(23, 25, 26, 0.88);
    backdrop-filter: blur(18px);
}

.public-header__content {
    min-height: 82px;
    display: flex;
    align-items: center;
}

.public-brand img,
.public-footer img {
    width: 180px;
    height: auto;
}

.public-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--page-border);
}

.public-hero::after {
    position: absolute;
    top: -160px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(236, 104, 28, 0.22);
    border-radius: 120px;
    content: "";
    transform: rotate(34deg);
}

.public-hero__content {
    position: relative;
    z-index: 1;
    padding-block: clamp(60px, 10vw, 112px);
}

.public-eyebrow {
    margin: 0 0 14px;
    color: var(--page-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.public-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.public-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.public-tags li {
    padding: 7px 12px;
    border: 1px solid rgba(236, 104, 28, 0.28);
    border-radius: 999px;
    background: var(--page-accent-soft);
    color: #f7a16f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.public-page-content {
    min-height: 30vh;
}

.page-section {
    position: relative;
    padding-block: 54px;
    transition: background-color 200ms ease;
}

.page-section + .page-section:not([data-has-background="true"]) {
    border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.rich-content {
    max-width: 860px;
    margin-inline: auto;
    color: #d8d9d8;
}

.rich-content > :first-child {
    margin-top: 0;
}

.rich-content > :last-child {
    margin-bottom: 0;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    margin: 1.4em 0 0.55em;
    color: var(--page-text);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.rich-content h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.rich-content h3 {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
    margin-block: 1em;
}

.rich-content li + li {
    margin-top: 0.45em;
}

.rich-content blockquote {
    margin-inline: 0;
    padding: 20px 24px;
    border-left: 3px solid var(--page-accent);
    border-radius: 0 18px 18px 0;
    background: var(--page-accent-soft);
    color: var(--page-text);
}

.rich-content hr {
    margin-block: 40px;
    border: 0;
    border-top: 1px solid var(--page-border);
}

.rich-content img {
    height: auto;
    margin-block: 28px;
    border-radius: 20px;
}

.image-text {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(34px, 7vw, 88px);
}

.image-text--invert .image-text__media {
    order: 2;
}

.image-text--invert .image-text__content {
    order: 1;
}

.image-text__media {
    position: relative;
    margin: 0;
}

.image-text__media::before {
    position: absolute;
    z-index: -1;
    inset: -14px 14px 14px -14px;
    border: 1px solid rgba(236, 104, 28, 0.34);
    border-radius: var(--page-radius);
    content: "";
}

.image-text__media img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--page-radius);
    box-shadow: var(--page-shadow);
    object-fit: cover;
}

.image-text__content {
    max-width: none;
}

.page-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.page-gallery--single {
    grid-template-columns: minmax(0, 920px);
    justify-content: center;
}

.page-gallery__item {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 0;
    border: 0;
    border-radius: var(--page-radius);
    background: var(--page-surface);
    box-shadow: var(--page-shadow);
    cursor: zoom-in;
}

.page-gallery__item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 350ms ease, filter 350ms ease;
}

.page-gallery__item:hover img {
    filter: brightness(0.76);
    transform: scale(1.025);
}

.page-gallery__zoom {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    background: rgba(23, 25, 26, 0.78);
    color: #fff;
    font-size: 1.45rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.page-gallery__item:hover .page-gallery__zoom {
    opacity: 1;
    transform: translateY(0);
}

.page-videos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.page-videos--single {
    grid-template-columns: minmax(0, 920px);
    justify-content: center;
}

.page-video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--page-border);
    border-radius: var(--page-radius);
    background: #0d0e0f;
    box-shadow: var(--page-shadow);
}

.page-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.page-podcast {
    overflow: hidden;
    max-width: 920px;
    margin-inline: auto;
    border: 1px solid var(--page-border);
    border-radius: var(--page-radius);
    background: var(--page-surface);
    box-shadow: var(--page-shadow);
}

.page-podcast iframe {
    display: block;
    width: 100%;
    height: 352px;
    border: 0;
}

.page-podcast--apple_ep iframe {
    height: 175px;
}

.page-podcast--spotify iframe,
.page-podcast--spotify_ep iframe {
    height: 232px;
}

.page-action {
    display: flex;
    justify-content: center;
}

.page-lead {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
    gap: clamp(36px, 7vw, 84px);
    align-items: center;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--page-border);
    border-radius: var(--page-radius);
    background: var(--page-surface);
    box-shadow: var(--page-shadow);
}

.page-lead__intro h2 {
    margin: 0 0 16px;
    color: var(--page-text);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.page-lead__intro > p:last-child {
    margin: 0;
    color: var(--page-muted);
}

.page-lead__form,
.page-lead__form label {
    display: grid;
    gap: 9px;
}

.page-lead__form {
    gap: 17px;
}

.page-lead__form label > span {
    color: #d7d8d7;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.page-lead__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.page-lead__form input,
.page-lead__form textarea {
    width: 100%;
    border: 1px solid var(--page-border);
    border-radius: 14px;
    outline: 0;
    background: #191b1c;
    color: var(--page-text);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.page-lead__form input {
    height: 52px;
    padding: 0 15px;
}

.page-lead__form textarea {
    min-height: 112px;
    padding: 13px 15px;
    resize: vertical;
}

.page-lead__form input:focus,
.page-lead__form textarea:focus {
    border-color: rgba(236, 104, 28, 0.7);
    box-shadow: 0 0 0 4px rgba(236, 104, 28, 0.12);
}

.page-lead__form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 15px;
    background: var(--page-accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: filter 180ms ease, transform 180ms ease;
}

.page-lead__form button:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.page-lead__form button:disabled {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

.page-lead__status {
    min-height: 24px;
    margin: -5px 0 0;
    color: var(--page-muted);
    font-size: 0.84rem;
}

.page-lead__status.is-success {
    color: #4ed5a4;
}

.page-lead__status.is-error {
    color: #ff8b7b;
}

.page-action__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: min(100%, 240px);
    min-height: 58px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: var(--page-accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
    transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.page-action__button:hover {
    filter: brightness(1.08);
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.page-action__button svg {
    transition: transform 180ms ease;
}

.page-action__button:hover svg {
    transform: translateX(4px);
}

.public-empty {
    padding-block: 100px;
    color: var(--page-muted);
    text-align: center;
}

.public-footer {
    padding-block: 46px;
    border-top: 1px solid var(--page-border);
    background: #121415;
}

.public-footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.public-footer p {
    margin: 0;
    color: var(--page-muted);
    font-size: 0.82rem;
}

.gallery-dialog {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: #0f1112;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.gallery-dialog::backdrop {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
}

.gallery-dialog img {
    width: 100%;
    max-height: calc(100vh - 32px);
    object-fit: contain;
}

.gallery-dialog__close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    background: rgba(15, 17, 18, 0.84);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .public-container {
        width: min(100% - 28px, 1120px);
    }

    .public-header__content {
        min-height: 72px;
    }

    .public-brand img {
        width: 142px;
    }

    .public-hero__content {
        padding-block: 58px 64px;
    }

    .page-section {
        padding-block: 42px;
    }

    .image-text,
    .page-gallery,
    .page-videos,
    .page-lead {
        grid-template-columns: 1fr;
    }

    .image-text {
        gap: 36px;
    }

    .image-text--invert .image-text__media,
    .image-text--invert .image-text__content {
        order: initial;
    }

    .page-gallery__item {
        min-height: 210px;
    }

    .page-lead {
        padding: 24px;
    }

    .page-lead__row {
        grid-template-columns: 1fr;
    }

    .page-gallery__zoom {
        opacity: 1;
        transform: none;
    }

    .public-footer__content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
