/* =============================================
   Latte Palette Photographer Site
   #F3EAE0 #E7D7C5 #C4A98D #B69A6A #3E352D
   ============================================= */

:root {
    --latte-100: #F3EAE0;
    --latte-200: #E7D7C5;
    --latte-300: #C4A98D;
    --latte-400: #B69A6A;
    --latte-900: #3E352D;

    --bg: var(--latte-100);
    --bg-alt: var(--latte-200);
    --accent: var(--latte-400);
    --accent-soft: var(--latte-300);
    --text: var(--latte-900);
    --text-muted: rgba(62, 53, 45, 0.72);
    --white: #fff;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Montserrat', system-ui, sans-serif;

    --header-h: 100px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 20px 60px rgba(62, 53, 45, 0.12);
    --logo-filter: sepia(0.45) saturate(0.5) brightness(0.84) contrast(1.02);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled,
.page-about .site-header,
.page-portfolio .site-header,
.page-services .site-header,
.page-contacts .site-header,
.page-privacy .site-header,
.page-terms .site-header {
    background: rgba(243, 234, 224, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(62, 53, 45, 0.08);
}

.page-home .site-header:not(.is-scrolled) {
    background: linear-gradient(
        180deg,
        rgba(62, 53, 45, 0.72) 0%,
        rgba(62, 53, 45, 0.35) 55%,
        transparent 100%
    );
}

.page-home .site-header:not(.is-scrolled) .nav-link {
    color: var(--white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    height: 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(1rem, 2.5vw, 2rem);
}

.header-logo {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-right: auto;
}

.header-logo--crop {
    height: calc(var(--header-h) - 14px);
    width: min(150px, 38vw);
    overflow: hidden;
}

.header-logo--crop:not(.header-logo--trimmed) .logo-mark {
    height: 310%;
    max-width: none;
    width: auto;
    object-fit: contain;
    object-position: top left;
}

.logo-mark {
    display: block;
    height: calc(var(--header-h) - 14px);
    width: auto;
    max-width: min(150px, 38vw);
    object-fit: contain;
    object-position: left center;
}

.header-logo--trimmed .logo-mark {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: left top;
}

.logo-mark--light {
    display: none;
}

.page-home .site-header:not(.is-scrolled) .logo-mark--dark {
    display: none;
}

.page-home .site-header:not(.is-scrolled) .logo-mark--light {
    display: block;
}

.site-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    position: relative;
    padding: 0.25rem 0;
    transition: opacity var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

.page-home .site-header:not(.is-scrolled) .nav-toggle span {
    background: var(--white);
}

/* ---- Hero (Home) ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-video,
.hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fallback {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(62, 53, 45, 0.38) 0%,
        rgba(62, 53, 45, 0.22) 50%,
        rgba(62, 53, 45, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    animation: fadeUp 1.2s ease both;
}

.hero-brand {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.06em;
    line-height: 1.2;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

.hero-scroll {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: background var(--transition), border-color var(--transition);
}

.hero-scroll:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    position: relative;
    min-height: clamp(210px, 32vh, 280px);
    padding: calc(var(--header-h) + 1.75rem) 1rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero--compact {
    min-height: clamp(170px, 22vh, 220px);
    padding: calc(var(--header-h) + 1rem) 1rem 1rem;
}

.page-hero--compact .page-title {
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-align: center;
    max-width: min(100%, 720px);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.page-hero:hover .page-hero-bg {
    transform: scale(1);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(62, 53, 45, 0.45),
        rgba(62, 53, 45, 0.6)
    );
}

.page-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---- Sections ---- */
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-intro {
    text-align: center;
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

/* ---- About ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about-photo {
    position: relative;
}

.about-photo::before {
    content: '';
    position: absolute;
    inset: -12px -12px 12px 12px;
    border: 1px solid var(--accent-soft);
    z-index: -1;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-name,
.contacts-name {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.about-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--text-muted);
    font-style: italic;
}

.contact-vk-url {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.contact-vk-url a {
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.contact-vk-url a:hover {
    border-bottom-color: var(--accent);
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.about-social-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--accent);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--accent-soft);
    transition: background var(--transition), color var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.social-links--large .social-link {
    padding: 0.8rem 1.5rem;
}

/* ---- Portfolio ---- */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.portfolio-tab {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    padding: 0.75rem 2.5rem;
    background: transparent;
    border: 1px solid var(--accent-soft);
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.portfolio-tab.is-active,
.portfolio-tab:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.portfolio-panel {
    display: none;
    animation: fadeUp 0.5s ease;
}

.portfolio-panel.is-active {
    display: block;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.portfolio-item {
    cursor: pointer;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.portfolio-image img,
.portfolio-image video,
.portfolio-video,
.portfolio-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
    background: var(--latte-900);
}

.portfolio-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(243, 234, 224, 0.92);
    color: var(--latte-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(62, 53, 45, 0.25);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(62, 53, 45, 0.7), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.portfolio-overlay h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 400;
}

.portfolio-card-note {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--latte-100);
}

.portfolio-item:hover .portfolio-image img,
.portfolio-item:hover .portfolio-image video,
.portfolio-item:hover .portfolio-poster {
    transform: scale(1.06);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(62, 53, 45, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 960px;
}

.lightbox-image,
.lightbox-video {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: var(--shadow);
}

.lightbox-video {
    width: 100%;
    background: #000;
}

.lightbox-caption {
    margin-top: 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--latte-200);
    white-space: pre-line;
}

/* ---- Services / Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--latte-200);
    transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.pricing-card--featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--white) 0%, var(--latte-100) 100%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
}

.pricing-name {
    font-family: var(--font-script);
    font-size: clamp(2.6rem, 4vw, 3.35rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--latte-900);
    margin-bottom: 0.35rem;
}

.pricing-price {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    flex: 1;
}

.pricing-cta {
    align-self: center;
    margin-top: auto;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--latte-200);
}

.pricing-features li::before {
    content: '—';
    margin-right: 0.5rem;
    color: var(--accent-soft);
}

.btn {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    transition: background var(--transition), color var(--transition);
}

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.services-extra {
    background: var(--bg-alt);
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.services-extra-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.services-extra-list {
    list-style: none;
}

.services-extra-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(62, 53, 45, 0.1);
    font-size: 0.95rem;
}

.services-extra-list li span:last-child {
    color: var(--accent);
    font-weight: 400;
    white-space: nowrap;
    margin-left: 1rem;
}

/* ---- Contacts ---- */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.contacts-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.4;
    margin-bottom: 2.5rem;
}

.contact-block {
    margin-bottom: 2rem;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.contact-phone,
.contact-email {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    transition: color var(--transition);
}

.contact-phone:hover,
.contact-email:hover {
    color: var(--accent);
}

.contacts-photo img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--latte-900);
    color: var(--latte-200);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-inner {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.footer-logo {
    display: block;
    width: min(280px, 80vw);
    height: auto;
    margin: 0 auto 1.25rem;
    opacity: 0.95;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.footer-social a:hover {
    opacity: 1;
}

.footer-phone {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    transition: color var(--transition);
}

.footer-phone:hover {
    color: var(--latte-300);
}

.footer-copy {
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.footer-legal a {
    opacity: 0.75;
    transition: opacity var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
}

.footer-legal span {
    opacity: 0.4;
}

/* ---- Legal pages ---- */
.legal-section {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 500;
    margin: 2.25rem 0 0.85rem;
    letter-spacing: 0.04em;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.legal-content ul {
    margin: 0 0 1rem 1.25rem;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-updated {
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1.5rem !important;
}

.legal-links {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--latte-200);
}

/* ---- Cookie banner ---- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    padding: 1rem;
    transform: translateY(110%);
    transition: transform var(--transition);
    pointer-events: none;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-inner {
    width: min(960px, 100%);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(243, 234, 224, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid var(--latte-200);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.cookie-banner-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.cookie-banner-text {
    flex: 1 1 280px;
}

.cookie-banner-text p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

.cookie-banner-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.cookie-btn--accept {
    background: var(--latte-900);
    color: var(--latte-100);
    border-color: var(--latte-900);
}

.cookie-btn--accept:hover {
    background: var(--latte-400);
    border-color: var(--latte-400);
}

.cookie-btn--decline {
    background: transparent;
    color: var(--text);
    border-color: var(--latte-300);
}

.cookie-btn--decline:hover {
    background: var(--latte-200);
}

body.cookie-banner-open {
    padding-bottom: 0;
}

@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .about-grid,
    .contacts-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-photo {
        max-width: 400px;
        margin: 0 auto;
    }

    .contacts-photo {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 85vw);
        height: 100vh;
        background: var(--latte-100);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -10px 0 40px rgba(62, 53, 45, 0.15);
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .page-home .site-header:not(.is-scrolled) .nav-link {
        filter: none;
        color: var(--text);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .page-hero--compact {
        min-height: clamp(150px, 20vh, 190px);
        padding: calc(var(--header-h) + 0.85rem) 0.75rem 0.85rem;
    }

    .page-hero--compact .page-title {
        font-size: clamp(1.5rem, 6.5vw, 2rem);
        letter-spacing: 0.04em;
    }

    .header-logo--trimmed .logo-mark {
        height: calc(var(--header-h) - 12px);
        max-width: min(150px, 44vw);
    }

    :root {
        --header-h: 92px;
    }

    .logo-mark {
        height: calc(var(--header-h) - 12px);
        max-width: min(130px, 44vw);
    }
}
