:root {
    --bg: #000000;
    --bg-soft: #050505;
    --text: #ffffff;
    --text-soft: #d1d5db;
    --brand: #f05a30;
    --brand-strong: #ff6a3d;
    --accent: #546ba5;
    --border-soft: rgba(255, 255, 255, 0.1);
    --font-display: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body.engecastro-body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.45;
    overflow-x: hidden;
}

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

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

.container {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}

.home-main {
    background: var(--bg);
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 90;
    padding: 24px 0;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(0, 0, 0, 0.76);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(14px);
}

body.single-enge_project .site-header {
    top: 18px;
    left: 18px;
    right: 18px;
    inset: 18px 18px auto 18px;
    width: auto;
    padding: 18px 0;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

body.single-enge_project .site-header.is-scrolled {
    background: rgba(0, 0, 0, 0.82);
    border-bottom: 1px solid var(--border-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
}

.brand-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo img {
    max-height: 50px;
    width: auto;
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 15px rgba(240, 90, 48, 0.9);
}

.brand-text {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.primary-nav .menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: color 0.35s ease;
}

.primary-nav a:hover {
    color: var(--brand);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding: 12px 20px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    box-shadow: 0 10px 30px -10px rgba(240, 90, 48, 0.7);
    transition: background 0.35s ease;
}

.header-cta:hover {
    background: var(--brand-strong);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: #fff;
}

.menu-toggle span + span {
    margin-top: 6px;
}

.hero-section {
    position: relative;
    min-height: clamp(720px, 92svh, 980px);
    width: 100%;
    overflow: hidden;
    background: #000;
}

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

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: hero-image-in 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: scale(1.08);
    opacity: 0;
}

.hero-media-slider .hero-slide {
    z-index: 0;
    animation: none;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.85s ease, transform 5.6s ease;
    will-change: opacity, transform;
}

.hero-media-slider .hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    transform: scale(1);
}

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

.hero-overlay-horizontal {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
}

.hero-overlay-vertical {
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.3), transparent);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero-glow-left {
    top: -160px;
    left: -160px;
    width: 500px;
    height: 500px;
    background: rgba(240, 90, 48, 0.2);
    filter: blur(160px);
}

.hero-glow-bottom-right {
    right: 10%;
    bottom: -200px;
    width: 600px;
    height: 600px;
    background: rgba(240, 90, 48, 0.25);
    filter: blur(180px);
}

.hero-glow-blue {
    top: 30%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: rgba(84, 107, 165, 0.2);
    filter: blur(140px);
}

.hero-grid-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: linear-gradient(to right, #fff 1px, transparent 1px), linear-gradient(to bottom, #fff 1px, transparent 1px);
    background-size: 120px 120px;
}

.hero-slider-dots {
    position: absolute;
    right: clamp(18px, 4vw, 42px);
    bottom: clamp(24px, 5vw, 40px);
    z-index: 24;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-slider-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.hero-slider-dot:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.58);
}

.hero-slider-dot.is-active {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(240, 90, 48, 0.16);
}

.hero-meta-strip {
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fade-in-down 1s ease 0.4s both;
}

.hero-meta-left,
.hero-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 10px;
}

.hero-meta-right {
    font-size: 11px;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.6);
}

.hero-meta-line {
    width: 32px;
    height: 1px;
    background: var(--brand);
}

.hero-map-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 10px rgba(240, 90, 48, 0.9);
}

.hero-main {
    position: relative;
    z-index: 10;
    min-height: clamp(720px, 92svh, 980px);
    padding-top: 118px;
    padding-bottom: 112px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-eyebrow-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    animation: fade-in-left 1s ease 0.5s both;
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 20px rgba(240, 90, 48, 1);
}

.hero-eyebrow {
    margin: 0;
    color: var(--brand);
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 8vw, 9rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-weight: 300;
    color: #fff;
    animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-title-line {
    display: block;
}

.hero-title-italic {
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
}

.hero-title-highlight-wrap {
    position: relative;
    display: inline-block;
    margin-left: 0.15em;
}

.hero-title-highlight {
    position: relative;
    z-index: 2;
    color: var(--brand);
    font-weight: 600;
}

.hero-title-highlight-shadow {
    position: absolute;
    inset: auto 0 0.12em 0;
    height: 0.24em;
    background: rgba(240, 90, 48, 0.2);
    filter: blur(8px);
    z-index: 1;
}

.hero-title-single {
    max-width: 15ch;
}

.hero-lower-grid {
    margin-top: 42px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: end;
}

.hero-subtitle {
    margin: 0;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.65;
    font-weight: 300;
    animation: fade-in-up 1s ease 0.8s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fade-in-up 1s ease 1s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    border: 1px solid transparent;
    font-size: 0.83rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.45s ease;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-strong);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: rgba(240, 90, 48, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.hero-btn-primary {
    box-shadow: 0 20px 60px -15px rgba(240, 90, 48, 0.6);
    min-width: 280px;
}

.btn-icon {
    font-size: 1.1em;
    line-height: 1;
}

.hero-btn-secondary .btn-badge {
    color: var(--brand);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.hero-stat-card {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    min-width: 174px;
    max-width: 210px;
    animation: fade-in-up 1s ease 1.2s both;
}

.hero-stat-topline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brand), transparent);
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.1;
}

.hero-stat-note {
    margin-top: 6px;
    color: var(--brand);
    font-size: 12px;
}

.hero-side-label {
    position: absolute;
    right: 24px;
    bottom: 48px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transform-origin: bottom right;
    transform: rotate(-90deg);
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.hero-side-line {
    width: 40px;
    height: 1px;
    background: var(--brand);
}

.hero-marquee {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-soft);
}

.hero-marquee-inner {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.3em;
}

.hero-marquee-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-marquee-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.hero-marquee-center {
    color: rgba(255, 255, 255, 0.4);
}

.hero-marquee-right {
    color: var(--accent);
}

.narrative-section {
    padding: 128px 0 192px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.narrative-inner {
    max-width: 980px;
    text-align: center;
}

.narrative-section h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 3.75rem);
    line-height: 1.3;
    font-weight: 300;
    color: var(--text-soft);
}

.narrative-section h2 span {
    color: #fff;
    font-weight: 500;
}

.projects-section {
    padding: 96px 0 128px;
}

.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 128px;
}

.projects-heading-copy {
    max-width: 610px;
}

.projects-heading h2 {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 300;
}

.projects-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.125rem;
    font-weight: 300;
}

.projects-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.4s ease;
}

.projects-link:hover {
    color: var(--brand);
}

.projects-link span {
    transition: transform 0.4s ease;
}

.projects-link:hover span {
    transform: translateX(8px);
}

.projects-stack {
    display: flex;
    flex-direction: column;
    gap: 128px;
}

.project-featured {
    position: relative;
    cursor: pointer;
}

.project-featured-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: #111;
}

.project-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    opacity: 0.8;
    transition: transform 1s ease-out, opacity 0.8s ease;
}

.project-featured:hover .project-featured-media img {
    transform: scale(1.05);
    opacity: 1;
}

.project-featured-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 58%);
}

.project-featured-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.project-badge {
    margin: 0 0 16px;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.82rem;
    font-weight: 600;
}

.project-featured-content h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.6vw, 3rem);
    font-weight: 500;
}

.project-featured-note {
    margin: 0;
    max-width: 330px;
    color: var(--text-soft);
    text-align: right;
    font-size: 0.875rem;
}

.projects-secondary-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
}

.project-secondary {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-secondary-left {
    grid-column: span 7;
}

.project-secondary-right {
    grid-column: span 5;
    margin-top: 128px;
}

.project-secondary-media {
    display: block;
    overflow: hidden;
    background: #111;
    margin-bottom: 32px;
}

.project-secondary-left .project-secondary-media {
    aspect-ratio: 4 / 5;
}

.project-secondary-right .project-secondary-media {
    aspect-ratio: 3 / 4;
}

.project-secondary-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transform: scale(1);
    transition: transform 1s ease-out, opacity 0.8s ease;
}

.project-secondary:hover .project-secondary-media img {
    transform: scale(1.05);
    opacity: 1;
}

.project-secondary h3 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 500;
}

.project-secondary p {
    margin: 0;
    color: var(--text-soft);
    font-weight: 300;
    max-width: 38ch;
}

.project-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.project-cards-grid-current {
    margin-top: -32px;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--border-soft);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        rgba(5, 5, 5, 0.88);
    overflow: hidden;
}

.project-card-future {
    background:
        linear-gradient(180deg, rgba(240, 90, 48, 0.08), rgba(255, 255, 255, 0.01)),
        rgba(5, 5, 5, 0.92);
}

.project-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #111;
}

.project-card--vila-santarem .project-card-media {
    aspect-ratio: 4 / 5;
}

.project-card--vita-vila-prudente .project-card-media {
    aspect-ratio: 3 / 4;
}

.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transform: scale(1);
    transition: transform 1s ease-out, opacity 0.8s ease;
}

.project-card:hover .project-card-media img {
    transform: scale(1.05);
    opacity: 1;
}

.project-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 26px 24px 28px;
}

.project-card-body h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
    font-weight: 500;
}

.project-card-body p:last-child {
    margin: 0;
    color: var(--text-soft);
    font-weight: 300;
    line-height: 1.7;
}

.projects-subsection {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 8px;
}

.projects-subsection-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid var(--border-soft);
}

.projects-subsection-heading h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 400;
}

.projects-subsection-heading p:last-child {
    margin: 0;
    max-width: 440px;
    color: var(--text-soft);
    line-height: 1.7;
    font-weight: 300;
    text-align: right;
}

.interlude-section {
    position: relative;
    height: 80svh;
    overflow: hidden;
}

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

.interlude-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.7;
    transform: scale(1.06);
    transition: transform 1.5s ease-out;
}

.interlude-section:hover .interlude-media img {
    transform: scale(1);
}

.interlude-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    mix-blend-mode: multiply;
}

.interlude-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.interlude-content h2 {
    margin: 0;
    max-width: 980px;
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 5vw, 4.5rem);
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.about-section {
    padding: 96px 0 192px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 32px;
}

.about-copy {
    position: sticky;
    top: 128px;
}

.about-copy h2 {
    margin: 0;
    max-width: 720px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 300;
}

.about-accent {
    margin-top: 8px;
    display: block;
    color: var(--accent);
    font-size: clamp(1.875rem, 4vw, 3.5rem);
    font-style: italic;
}

.about-copy p {
    margin: 48px 0 0;
    color: var(--text-soft);
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: 560px;
}

.about-list {
    padding-top: 128px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.about-item {
    border-top: 1px solid var(--border-soft);
    padding-top: 32px;
}

.about-item-index {
    color: var(--accent);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.about-item h3 {
    margin: 16px 0 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 1.95rem);
    font-weight: 300;
}

.cta-section {
    padding: 128px 0 192px;
    background: var(--bg-soft);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    margin: 0;
    max-width: 900px;
    margin-inline: auto;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.btn-round {
    border-radius: 999px;
}

.cta-button {
    margin-top: 64px;
    gap: 12px;
    padding-inline: 32px;
}

.cta-button:hover {
    background: #fff;
    color: #000;
}

.site-footer {
    padding: 64px 0 24px;
    border-top: 1px solid var(--border-soft);
    background: #000;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer-brand {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-description {
    margin: 24px 0 0;
    color: var(--text-soft);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 290px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col p,
.footer-col a {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--brand);
}

.footer-label {
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.footer-col-span {
    grid-column: span 2;
}

.footer-bottom {
    margin-top: 96px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.default-page {
    padding: 140px 0 80px;
}

.default-page-inner h1 {
    margin-top: 0;
    font-family: var(--font-display);
}

@media (min-width: 768px) {
    .container {
        width: min(100% - 96px, 1280px);
    }

    .hero-meta-strip {
        top: 104px;
    }

    .hero-stat-value {
        font-size: 2rem;
    }

    .project-featured-content {
        padding: 48px;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .footer-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 96px;
    }

    .footer-col-span {
        grid-column: span 1;
    }

    .footer-bottom {
        margin-top: 96px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .container {
        width: min(100% - 192px, 1280px);
    }

    .hero-lower-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 48px;
    }

    .hero-main {
        padding-bottom: 124px;
    }

    .hero-subtitle {
        grid-column: span 5;
    }

    .hero-actions {
        grid-column: span 5;
        align-self: end;
    }

    .hero-stat-card {
        grid-column: span 2;
        align-self: end;
    }
}

@media (max-width: 1023px) {
    .primary-nav .menu {
        gap: 24px;
    }

    .hero-side-label {
        display: none;
    }

    .project-featured-media {
        aspect-ratio: 16 / 9;
    }

    .projects-heading {
        margin-bottom: 80px;
    }

    .projects-stack {
        gap: 80px;
    }

    .projects-secondary-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .project-secondary-left,
    .project-secondary-right {
        grid-column: auto;
        margin-top: 0;
    }

    .project-secondary-left .project-secondary-media,
    .project-secondary-right .project-secondary-media {
        aspect-ratio: 16 / 10;
    }

    .project-cards-grid-current {
        margin-top: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .about-copy {
        position: static;
    }

    .about-list {
        padding-top: 0;
    }
}

@media (max-width: 990px) {
    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
    }

    .header-actions {
        position: absolute;
        top: calc(100% + 8px);
        right: 24px;
        width: min(320px, calc(100% - 48px));
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        background: rgba(0, 0, 0, 0.95);
        border: 1px solid var(--border-soft);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .site-header.menu-open .header-actions {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .primary-nav .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .header-cta {
        margin-left: 0;
        justify-content: center;
    }

    .hero-meta-right,
    .hero-marquee-center {
        display: none;
    }
}

@media (max-width: 767px) {
    .container {
        width: calc(100% - 48px);
    }

    .site-header {
        padding: 20px 0;
    }

    body.single-enge_project .site-header {
        inset: 12px 12px auto 12px;
        padding: 16px 0;
        border-radius: 18px;
    }

    .brand-text {
        font-size: 1.1rem;
        letter-spacing: 0.18em;
    }

    .hero-section {
        min-height: 100svh;
    }

    .hero-main {
        min-height: 100svh;
        padding-top: 120px;
        padding-bottom: 84px;
    }

    .hero-meta-strip {
        top: 94px;
    }

    .hero-title {
        font-size: clamp(2.35rem, 12vw, 4.2rem);
    }

    .hero-lower-grid {
        margin-top: 40px;
    }

    .hero-actions {
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 18px 20px;
    }

    .hero-stat-card {
        max-width: none;
    }

    .hero-slider-dots {
        right: 16px;
        bottom: 18px;
        gap: 8px;
    }

    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }

    .hero-marquee-inner {
        min-height: 46px;
        letter-spacing: 0.2em;
        font-size: 9px;
    }

    .narrative-section {
        padding: 104px 0 120px;
    }

    .projects-section {
        padding: 80px 0 100px;
    }

    .projects-heading {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 64px;
    }

    .projects-subsection-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-subsection-heading p:last-child {
        text-align: left;
    }

    .project-featured-content {
        padding: 22px;
    }

    .project-featured-note {
        display: none;
    }

    .interlude-section {
        height: 72svh;
    }

    .about-section {
        padding: 88px 0 120px;
    }

    .about-copy p {
        margin-top: 34px;
        font-size: 1rem;
    }

    .about-list {
        gap: 42px;
    }

    .cta-section {
        padding: 96px 0 128px;
    }

    .cta-button {
        margin-top: 44px;
    }

    .site-footer {
        padding-top: 52px;
    }
}

@keyframes hero-image-in {
    from {
        transform: scale(1.08);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-dot {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

.project-page {
    background: var(--bg);
}

.project-hero {
    position: relative;
    padding: 164px 0 72px;
    border-bottom: 1px solid var(--border-soft);
    background:
        radial-gradient(circle at top left, rgba(240, 90, 48, 0.16), transparent 36%),
        radial-gradient(circle at top right, rgba(84, 107, 165, 0.18), transparent 34%),
        linear-gradient(180deg, #040404 0%, #000000 100%);
}

.project-hero-shell {
    position: relative;
}

.project-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 34px;
    align-items: center;
}

.project-hero-copy {
    position: relative;
    z-index: 1;
}

.project-hero-visual {
    position: relative;
    min-height: 620px;
    padding: 34px 0 34px 34px;
}

.project-hero-visual::before {
    content: "";
    position: absolute;
    inset: 0 0 0 24px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-hero-visual::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -16px;
    bottom: -12px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(240, 90, 48, 0.22), transparent 68%);
    filter: blur(10px);
}

.project-hero-visual-empty {
    min-height: 0;
    padding: 0;
}

.project-hero-visual-empty::before,
.project-hero-visual-empty::after {
    display: none;
}

.project-hero-media {
    position: relative;
    height: 100%;
    min-height: 620px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.project-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.72) saturate(1.02);
}

.project-hero-media-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(135deg, rgba(240, 90, 48, 0.12) 0%, rgba(0, 0, 0, 0) 46%, rgba(84, 107, 165, 0.16) 100%);
}

.project-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    color: var(--text-soft);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.project-badge-hero {
    margin-bottom: 18px;
}

.project-title {
    margin: 0;
    max-width: 760px;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6.2vw, 5.35rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.project-lead {
    margin: 28px 0 0;
    max-width: 640px;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.project-action-secondary {
    min-width: 180px;
    justify-content: center;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
}

.project-hero-floating-card {
    position: absolute;
    left: 0;
    right: 52px;
    bottom: 0;
    z-index: 2;
    max-width: 420px;
    margin-left: 0;
    padding: 24px 24px 22px;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    background: rgba(4, 4, 4, 0.86);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.project-hero-floating-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.72;
}

.project-meta-card,
.project-panel,
.project-highlight-card {
    border: 1px solid var(--border-soft);
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(18px);
}

.project-meta-card {
    padding: 22px 24px;
}

.project-meta-label,
.project-panel-label {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.project-meta-value {
    font-size: 1rem;
    line-height: 1.5;
}

.project-body-section {
    padding: 96px 0 128px;
}

.project-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 40px;
    align-items: start;
}

.project-overline {
    margin: 0 0 22px;
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.project-content {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.85;
}

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

.project-content p {
    margin: 0 0 1.2em;
}

.project-content p:last-child {
    margin-bottom: 0;
}

.project-content strong {
    color: #fff;
    font-weight: 600;
}

.project-content h2,
.project-content h3 {
    margin: 1.6em 0 0.7em;
    color: #fff;
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 400;
}

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

.project-content h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.project-content ul,
.project-content ol {
    margin: 0 0 1.5em;
    padding-left: 1.2em;
}

.project-content li {
    margin-bottom: 0.8em;
}

.project-sidebar {
    display: grid;
    gap: 18px;
}

.project-panel {
    padding: 24px;
}

.project-highlights {
    display: grid;
    gap: 14px;
}

.project-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 18px 16px;
}

.project-highlight-card p,
.project-panel-copy {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.project-highlight-dot {
    width: 10px;
    height: 10px;
    margin-top: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 24px rgba(240, 90, 48, 0.45);
}

.project-panel-cta {
    margin-top: 24px;
    width: 100%;
    justify-content: center;
}

.project-contact-notice {
    margin-top: 28px;
    padding: 16px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: rgba(8, 8, 8, 0.78);
    color: var(--text-soft);
    line-height: 1.7;
}

.project-contact-notice.is-success {
    border-color: rgba(101, 199, 149, 0.34);
    background: rgba(17, 56, 37, 0.34);
    color: #d8f4e5;
}

.project-contact-notice.is-error {
    margin-top: 0;
    border-color: rgba(240, 90, 48, 0.28);
    background: rgba(79, 25, 16, 0.4);
    color: #ffd8cf;
}

.project-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.project-contact-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(12px);
}

.project-contact-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(84, 107, 165, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(240, 90, 48, 0.18), transparent 28%),
        rgba(7, 7, 7, 0.96);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.46);
}

.project-contact-dialog-inner {
    padding: 34px 34px 32px;
}

.project-contact-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.project-contact-kicker {
    display: inline-block;
    color: var(--accent);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.project-contact-dialog h2 {
    margin: 16px 0 14px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.project-contact-intro {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.project-contact-form {
    margin-top: 28px;
}

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

.project-contact-field {
    display: grid;
    gap: 10px;
}

.project-contact-field span {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

.project-contact-field-full {
    grid-column: 1 / -1;
}

.project-contact-input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: inherit;
    box-sizing: border-box;
}

.project-contact-input::placeholder {
    color: rgba(232, 233, 238, 0.42);
}

.project-contact-input:focus {
    outline: none;
    border-color: rgba(240, 90, 48, 0.5);
    box-shadow: 0 0 0 3px rgba(240, 90, 48, 0.14);
}

.project-contact-textarea {
    min-height: 168px;
    padding: 16px 18px;
    resize: vertical;
}

.project-contact-submit {
    width: 100%;
    justify-content: center;
    margin-top: 22px;
}

.vita-galeria-tabs {
    --vita-bg: #f7f5f2;
    --vita-text: #2e211d;
    --vita-muted: #65758c;
    --vita-accent: #f2662b;
    --vita-dark: #2c1e19;
    --vita-border: #e7ddd5;
    --vita-white: #ffffff;

    width: 100%;
    padding: 90px 20px 110px;
    background: var(--vita-bg);
    box-sizing: border-box;
    overflow: hidden;
}

.vita-galeria-container {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
}

.vita-galeria-head {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.vita-galeria-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 20px;
    border: 1px solid #efc9b5;
    border-radius: 999px;
    color: var(--vita-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.35);
    box-sizing: border-box;
}

.vita-galeria-head h2 {
    margin: 24px 0 16px;
    color: var(--vita-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 5.4vw, 76px);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.vita-galeria-head h2 span {
    color: var(--vita-accent);
}

.vita-galeria-head p {
    margin: 0 auto;
    max-width: 830px;
    color: #657790;
    font-size: 18px;
    line-height: 1.65;
}

.vita-galeria-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 52px;
}

.vita-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6f665f;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0 24px;
    min-height: 46px;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.vita-tab:hover {
    color: var(--vita-dark);
}

.vita-tab.is-active {
    background: var(--vita-dark);
    color: var(--vita-white);
}

.vita-galeria-stage {
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(300px, 42%);
    align-items: end;
    column-gap: 46px;
    row-gap: 30px;
}

.vita-galeria-media-wrap {
    width: 100%;
}

.vita-galeria-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.05;
    border: 0;
    padding: 0;
    border-radius: 30px;
    overflow: hidden;
    background: #eae2d9;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 21, 14, 0.05);
}

.vita-galeria-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.vita-galeria-media:hover img {
    transform: scale(1.035);
}

.vita-galeria-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #4f4a46;
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vita-galeria-badge::before {
    content: "↗";
    font-size: 11px;
    line-height: 1;
    color: #3f3934;
}

.vita-galeria-copy {
    width: 100%;
    padding-bottom: 12px;
}

.vita-galeria-copy-inner {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
}

.vita-galeria-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--vita-accent);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.vita-galeria-copy h3 {
    margin: 0 0 18px;
    color: var(--vita-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3.4vw, 58px);
    line-height: 1.06;
    font-weight: 500;
    letter-spacing: -0.035em;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.vita-galeria-copy p {
    margin: 0;
    color: #67788d;
    font-size: 17px;
    line-height: 1.75;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.vita-galeria-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 34px;
    margin-top: 34px;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.vita-btn-primary,
.vita-btn-secondary {
    font-family: var(--font-body);
    text-decoration: none;
    transition: all 0.25s ease;
}

.vita-btn-primary {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--vita-accent);
    color: #ffffff;
    font-size: 16px;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(242, 107, 43, 0.22);
}

.vita-btn-primary:hover {
    transform: translateY(-2px);
    background: #eb6120;
    color: #ffffff;
}

.vita-btn-secondary {
    color: var(--vita-text);
    font-size: 16px;
    font-weight: 650;
}

.vita-btn-secondary:hover {
    color: var(--vita-accent);
}

.vita-galeria-copy::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 26px;
    background: var(--vita-border);
}

.vita-is-changing .vita-galeria-media img,
.vita-is-changing .vita-galeria-label,
.vita-is-changing .vita-galeria-copy h3,
.vita-is-changing .vita-galeria-copy p,
.vita-is-changing .vita-galeria-actions {
    opacity: 0.25;
}

.vita-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.vita-lightbox.is-open {
    display: flex;
}

.vita-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 12, 9, 0.82);
    backdrop-filter: blur(8px);
}

.vita-lightbox-panel {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    background: #f8f5f1;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.vita-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #2c1e19;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.vita-lightbox-close:hover {
    background: #f2662b;
    transform: rotate(8deg);
}

.vita-lightbox-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 74px 18px 30px;
    border-bottom: 1px solid #eadfd7;
}

.vita-lightbox-top span {
    display: inline-block;
    margin-bottom: 6px;
    color: #f2662b;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vita-lightbox-top h3 {
    margin: 0;
    color: #2e211d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 500;
}

.vita-lightbox-top p {
    margin: 0;
    color: #6a5f57;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.vita-lightbox-main {
    position: relative;
    flex: 1;
    min-height: 0;
    padding: 22px 78px;
    box-sizing: border-box;
}

.vita-lightbox-image-wrap {
    width: 100%;
    height: min(58vh, 660px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #efe8df;
    border-radius: 22px;
    overflow: hidden;
}

.vita-lightbox-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vita-lightbox-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #2c1e19;
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: all 0.25s ease;
}

.vita-lightbox-arrow:hover {
    background: #f2662b;
}

.vita-lightbox-prev {
    left: 22px;
}

.vita-lightbox-next {
    right: 22px;
}

.vita-lightbox-thumbs {
    display: flex;
    gap: 10px;
    padding: 0 30px 26px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.vita-lightbox-thumb {
    flex: 0 0 96px;
    height: 70px;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    background: #e8dfd6;
    cursor: pointer;
    opacity: 0.72;
    transition: all 0.25s ease;
}

.vita-lightbox-thumb.is-active {
    border-color: #f2662b;
    opacity: 1;
}

.vita-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .vita-galeria-tabs {
        padding: 80px 18px 90px;
    }

    .vita-galeria-stage {
        grid-template-columns: 1fr;
        row-gap: 34px;
    }

    .vita-galeria-copy-inner {
        max-width: 100%;
        margin-left: 0;
    }

    .vita-galeria-copy {
        padding-bottom: 0;
    }

    .vita-galeria-media {
        aspect-ratio: 1 / 0.82;
    }

    .vita-lightbox-main {
        padding: 20px 68px;
    }
}

@media (max-width: 767px) {
    .vita-galeria-tabs {
        padding: 62px 16px 74px;
    }

    .vita-galeria-head {
        margin-bottom: 28px;
    }

    .vita-galeria-head h2 {
        margin: 20px 0 14px;
        font-size: 44px;
    }

    .vita-galeria-head p {
        font-size: 16px;
        line-height: 1.65;
    }

    .vita-galeria-nav {
        gap: 10px;
        margin-bottom: 28px;
    }

    .vita-tab {
        min-height: 42px;
        padding: 0 18px;
        font-size: 13px;
    }

    .vita-galeria-media {
        aspect-ratio: 1 / 1.06;
        border-radius: 22px;
    }

    .vita-galeria-badge {
        top: 14px;
        left: 14px;
        min-height: 32px;
        font-size: 12px;
    }

    .vita-galeria-label {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .vita-galeria-copy h3 {
        font-size: 32px;
        margin-bottom: 14px;
    }

    .vita-galeria-copy p {
        font-size: 15px;
        line-height: 1.7;
    }

    .vita-galeria-actions {
        gap: 16px;
        margin-top: 26px;
    }

    .vita-btn-primary {
        width: 100%;
        min-height: 50px;
        padding: 0 22px;
        font-size: 15px;
    }

    .vita-btn-secondary {
        font-size: 15px;
    }

    .vita-galeria-copy::after {
        margin-top: 20px;
    }

    .vita-lightbox {
        padding: 12px;
    }

    .vita-lightbox-panel {
        max-height: calc(100vh - 24px);
        border-radius: 22px;
    }

    .vita-lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .vita-lightbox-top {
        display: block;
        padding: 24px 62px 16px 20px;
    }

    .vita-lightbox-top h3 {
        font-size: 26px;
    }

    .vita-lightbox-top p {
        margin-top: 8px;
    }

    .vita-lightbox-main {
        padding: 16px 16px 10px;
    }

    .vita-lightbox-image-wrap {
        height: 58vh;
        border-radius: 18px;
    }

    .vita-lightbox-arrow {
        top: auto;
        bottom: 92px;
        width: 42px;
        height: 42px;
        font-size: 32px;
        transform: none;
    }

    .vita-lightbox-prev {
        left: 22px;
    }

    .vita-lightbox-next {
        right: 22px;
    }

    .vita-lightbox-thumbs {
        padding: 10px 16px 18px;
    }

    .vita-lightbox-thumb {
        flex-basis: 82px;
        height: 60px;
        border-radius: 12px;
    }
}

@media (max-width: 420px) {
    .vita-galeria-head h2 {
        font-size: 38px;
    }

    .vita-galeria-kicker {
        min-height: 38px;
        padding: 0 14px;
        font-size: 11px;
    }

    .vita-tab {
        width: 100%;
    }

    .vita-lightbox-image-wrap {
        height: 52vh;
    }
}

@media (max-width: 990px) {
    .project-hero {
        padding-top: 148px;
    }

    .project-hero-grid,
    .project-meta-grid,
    .project-body-grid {
        grid-template-columns: 1fr;
    }

    .project-hero-visual {
        min-height: 0;
        padding: 0;
    }

    .project-hero-visual::before,
    .project-hero-visual::after {
        display: none;
    }

    .project-hero-media {
        min-height: 500px;
    }

    .project-hero-floating-card {
        right: 20px;
        left: 20px;
        bottom: 20px;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .project-hero {
        padding-top: 128px;
        padding-bottom: 54px;
    }

    .project-title {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }

    .project-lead {
        font-size: 1rem;
    }

    .project-hero-media {
        min-height: 380px;
        border-radius: 24px;
    }

    .project-hero-floating-card {
        position: static;
        margin-top: 16px;
        padding: 20px;
    }

    .project-body-section {
        padding: 72px 0 104px;
    }

    .project-meta-card,
    .project-panel {
        padding: 20px;
    }

    .project-contact-modal {
        padding: 14px;
    }

    .project-contact-dialog {
        max-height: calc(100vh - 28px);
        border-radius: 24px;
    }

    .project-contact-dialog-inner {
        padding: 24px 20px 22px;
    }

    .project-contact-close {
        top: 12px;
        right: 12px;
    }

    .project-contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-contact-textarea {
        min-height: 150px;
    }
}
