/* =========================================
   1. RESET & GLOBAL STYLES
   ========================================= */
:root {
    --frame: clamp(30px, 4vw, 80px);
    --gap: clamp(30px, 4vw, 80px);
    --mobile-side-pad: 20px;
    --sidebar-width: clamp(240px, 18vw, 800px);
}

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

html {
    scrollbar-gutter: stable;
    font-size: 100%;
}

body {
    font-family: "Greta Sans ", sans-serif;
    font-style: normal;
    font-weight: 400;
    background-color: #fafaf8;
    color: #1a1a1a;
    min-height: 100vh; /* שונה מ-height ל-min-height */
    width: 100%;
    overflow-x: hidden; /* מאפשר גלילה אנכית, מונע אופקית */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    padding-left: var(--sidebar-width);
}

/* =========================================
   2. SIDEBAR (Left Panel - Fixed)
   ========================================= */
.sidebar {
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
    height: 100vh;
    background-color: #fafaf8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--frame) var(--gap) var(--frame) var(--frame);
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.logo-container {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 101;
}

.logo-container a {
    display: block;
    width: 100%;
}

.logo-container img {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
}

.logo-subtitle {
    font-size: clamp(0.5625rem, 0.5vw, 1.25rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-top: 1.5em;
}

.sidebar-footer {
    font-size: clamp(0.5625rem, 0.5vw, 1.25rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
}

/* =========================================
   3. HAMBURGER MENU (Hidden on Desktop)
   ========================================= */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: #1a1a1a;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   4. NAVIGATION - TRUE CENTER
   ========================================= */
nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nav-links {
    list-style: none;
    padding-left: 0;
    font-size: clamp(0.6875rem, 0.65vw, 1.625rem);
    display: flex;
    flex-direction: column;
    gap: 1.8em;
    transition: opacity 0.3s ease;
    width: 100%;
    align-items: flex-start;
    text-align: left;
}

.nav-links:hover li:not(:hover) a {
    opacity: 0.25;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: rgba(26, 26, 26, 0.6);
    font-size: inherit;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.nav-links a:hover,
.nav-links li.active a {
color: #1a1a1a;
    transform: scale(1.03);
}

/* =========================================
   5. CONTENT AREA
   ========================================= */
.content {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden; /* מבטיח שלא יהיה סקרול אופקי */
    position: relative;
    scrollbar-width: none;
}

.content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.hero-image {
    width: 100%;
    height: 100vh;
    padding: var(--frame) var(--frame) var(--frame) 0;
    box-sizing: border-box;
}

.hero-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

/* =========================================
   6. PROJECTS GRID
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* רווח בין התמונות לבין עצמן */
    gap: clamp(20px, 3vw, 80px); 
    /* פדינג ימני ושמאלי שומרים שהתמונות לא יידבקו לקצוות */
    padding: var(--frame) var(--frame) var(--frame) 10px; 
    width: 100%;
    max-width: 2400px;
    box-sizing: border-box;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
    min-width: 0;
}

.project-card.soon {
    cursor: default;
    pointer-events: none;
}

.project-card.soon .project-thumb img {
    transition: none;
}

.project-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: clamp(2px, 0.3vw, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: top;
    transition: filter 0.5s ease;
    filter: brightness(0.95);
}

.project-card:hover .project-thumb img {
    filter: brightness(1);
}

.project-meta-grid {
    display: flex;
    justify-content: space-between;
    font-size: clamp(0.5625rem, 0.5vw, 1.25rem);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    padding-top: 0;
}

/* =========================================
   7. INDIVIDUAL PROJECT PAGE (COLLAGE GRID)
   ========================================= */
.project-detail-main {
    padding: var(--frame) var(--frame) var(--frame) 0;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

.project-text-block {
    margin-bottom: clamp(28px, 3vw, 48px);
    max-width: 820px;
    width: 100%;
}

.project-description {
    font-size: clamp(0.68rem, 0.68vw, 0.98rem);
    line-height: 1.9;
    color: rgba(26, 26, 26, 0.88);
    margin-top: 16px;
    max-width: 72ch;
}

.project-title {
    font-size: clamp(0.875rem, 1.2vw, 2.1rem);
    text-transform: uppercase;
    margin: 0 0 0.6em 0;
    line-height: 1;
    letter-spacing: 0.12em;
    color: #333333;
    font-weight: 400;
    transform: translateY(-1.5px);
}

.project-meta {
    font-size: clamp(0.5rem, 0.5vw, 1.25rem);
    letter-spacing: 0.15em;
    font-weight: 400;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-bottom: 0;
}

.project-photo-credit {
    font-size: clamp(0.5rem, 0.5vw, 1.25rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.project-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: var(--frame);
    width: 100%;
}

.project-lock-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: rgba(26, 26, 26, 0.48);
    cursor: pointer;
    display: inline-flex;
    height: 1em;
    justify-content: center;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    width: 1em;
}

.project-lock-button:hover,
.project-lock-button:focus-visible {
    color: #1a1a1a;
    transform: translateY(-1px);
}

.project-lock-button svg {
    display: block;
    fill: none;
    height: 0.95em;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
    width: 0.95em;
}

.project-access-modal {
    align-items: center;
    background: rgba(250, 250, 248, 0.86);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 220;
}

.project-access-modal[hidden] {
    display: none;
}

.project-access-dialog {
    background: #fafaf8;
    border: 1px solid rgba(26, 26, 26, 0.18);
    max-width: 420px;
    padding: clamp(24px, 3vw, 42px);
    width: min(100%, 420px);
}

.project-access-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.project-access-actions button {
    background: transparent;
    border: 0;
    color: rgba(26, 26, 26, 0.58);
    cursor: pointer;
    font: inherit;
    font-size: clamp(0.62rem, 0.58vw, 1rem);
    padding: 0;
}

.project-access-actions button:hover {
    color: #1a1a1a;
}

.project-data-standalone {
    min-height: 100vh;
}

.project-data-shell {
    min-height: 100vh;
    padding-left: var(--sidebar-width);
    width: 100%;
}

.project-data-page {
    height: auto;
    min-height: 100vh;
    padding: var(--frame);
    width: 100%;
}

.project-data-page-inner {
    max-width: 680px;
    width: 100%;
}

.project-data-back {
    color: rgba(26, 26, 26, 0.58);
    display: inline-block;
    font-size: clamp(0.56rem, 0.52vw, 1rem);
    letter-spacing: 0.15em;
    margin-bottom: clamp(32px, 5vw, 78px);
    text-decoration: none;
    text-transform: uppercase;
}

.project-data-back:hover {
    color: #1a1a1a;
}

.project-data-page-title {
    color: #333333;
    font-size: clamp(0.875rem, 1.2vw, 2.1rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1;
    margin: 0 0 14px 0;
    text-transform: uppercase;
}

.project-data-intro {
    color: rgba(26, 26, 26, 0.86);
    font-size: clamp(0.68rem, 0.68vw, 0.98rem);
    line-height: 1.9;
    margin: 0 0 clamp(24px, 3vw, 48px) 0;
    max-width: 72ch;
}

.project-data-page-form,
.project-data-content {
    max-width: 560px;
}

.project-data-page-form {
    border-top: 1px solid rgba(26, 26, 26, 0.16);
    padding-top: clamp(16px, 1.6vw, 28px);
}

.project-data-title {
    color: #1a1a1a;
    font-size: clamp(0.56rem, 0.52vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1.4;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.project-data-form {
    align-items: flex-end;
    display: flex;
    gap: 12px;
}

.project-data-label {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.project-data-label span,
.project-data-status,
.project-data-list dt,
.project-data-list dd,
.project-data-form button {
    font-size: clamp(0.62rem, 0.58vw, 1rem);
    line-height: 1.5;
}

.project-data-label span,
.project-data-list dt {
    color: rgba(26, 26, 26, 0.58);
}

.project-data-label input {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.32);
    border-radius: 0;
    color: #1a1a1a;
    font: inherit;
    min-height: 34px;
    outline: none;
    padding: 6px 0;
    width: 100%;
}

.project-data-label input:focus {
    border-bottom-color: #1a1a1a;
}

.project-data-form button {
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.36);
    border-radius: 0;
    color: #1a1a1a;
    cursor: pointer;
    min-height: 34px;
    padding: 6px 16px;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.project-data-form button:hover {
    background-color: rgba(26, 26, 26, 0.04);
    border-color: #1a1a1a;
}

.project-data-status {
    color: rgba(26, 26, 26, 0.62);
    margin-top: 12px;
}

.project-data-status.is-error {
    color: #8d2d22;
}

.project-data-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
}

.project-data-row {
    display: flex;
    gap: 18px;
}

.project-data-row dt {
    flex: 0 0 180px;
}

.project-data-row dd {
    flex: 0 1 auto;
    min-width: 0;
}

.project-data-section {
    border-top: 1px solid rgba(26, 26, 26, 0.14);
    padding-top: clamp(14px, 1.5vw, 24px);
}

.project-data-section + .project-data-section {
    margin-top: clamp(24px, 3vw, 44px);
}

.project-data-section-title {
    color: #1a1a1a;
    font-size: clamp(0.56rem, 0.52vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1.4;
    margin: 0 0 14px 0;
    text-transform: uppercase;
}

.project-data-list dt,
.project-data-list dd {
    margin: 0;
}

.project-data-list dd {
    color: rgba(26, 26, 26, 0.88);
    unicode-bidi: isolate;
}

.project-data-value-with-suffix {
    align-items: baseline;
    direction: ltr;
    display: inline-flex;
    gap: 0.35em;
    justify-content: flex-start;
    unicode-bidi: isolate;
}

.project-data-value-number,
.project-data-value-suffix {
    display: inline-block;
}

.project-data-value-suffix {
    direction: rtl;
}

.project-collage-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(10px, 1.2vw, 20px);
    width: 100%;
    align-items: start;
    grid-auto-flow: row;
}

.project-collage-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: filter;
    transition: filter 0.5s ease !important;
    filter: brightness(0.95) grayscale(0) !important;
    -webkit-user-drag: none;
    user-select: none;
}

.project-collage-gallery img:hover {
    filter: brightness(1) grayscale(0) !important;
}

.project-collage-gallery img.landscape {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
}

.project-collage-gallery img.portrait {
    grid-column: span 1;
    aspect-ratio: 2 / 3;
}

/* =========================================
   8. LIGHTBOX OVERLAY CAROUSEL
   ========================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fafaf8;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-carousel {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-carousel .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    -webkit-user-drag: none;
    user-select: none;
}

.lightbox-carousel .slide.active {
    opacity: 1;
    z-index: 2;
}

.lightbox-ctrl {
    position: absolute;
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: rgba(26, 26, 26, 0.88);
    transition: opacity 0.25s ease;
}

.lightbox-ctrl svg {
    width: 22px;
    height: 22px;
    stroke-width: 0.7px !important;
    stroke-linecap: square;
    display: block;
}

.lightbox-ctrl:hover {
    opacity: 0.55;
}

.fullscreen-btn {
    top: 22px;
    left: 24px;
}

.close-btn {
    top: 22px;
    right: 24px;
}

.prev-btn {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.next-btn {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

:fullscreen .fullscreen-btn,
:-webkit-full-screen .fullscreen-btn {
    display: none !important;
}

/* =========================================
   9. ABOUT & CONTACT PAGE LAYOUT (SPLIT)
   ========================================= */
.about-split-layout,
.contact-split-layout {
    display: flex;
    justify-content: flex-start;
    gap: var(--gap);
    padding: var(--frame) var(--frame) var(--frame) 0;
    width: 100%;
    height: 100vh;
    max-width: 2400px;
    align-items: flex-start;
}

.about-image-col,
.contact-image-col {
    flex: 0 0 auto;
    height: 100%;
}

.about-image-col img,
.contact-image-col img {
    width: auto;
    height: 100%;
    max-width: 45vw;
    object-fit: contain;
    object-position: left top;
    display: block;
}

.about-text-col,
.contact-text-col {
    flex: 1;
    max-width: clamp(400px, 35vw, 1200px);
    display: flex;
    flex-direction: column;
    padding-top: 0;
    margin-top: 0;
    gap: clamp(20px, 2.5vw, 80px);
}

.about-bio h3 {
    font-size: clamp(0.6875rem, 0.65vw, 1.625rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1em;
    font-weight: 400;
    color: #1a1a1a;
}

.about-bio p {
    font-size: clamp(0.875rem, 0.8vw, 2.25rem);
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 100%;
}

@media (min-width: 2200px) {
    .about-text-col,
    .contact-text-col {
        max-width: clamp(460px, 37vw, 1400px);
    }

    .about-bio p,
    .contact-note {
        font-size: clamp(1.5rem, 1vw, 2rem);
        line-height: 1.6;
    }
}

/* =========================================
   10. CONTACT & THANKS
   ========================================= */
.contact-wrap {
    padding: var(--frame) var(--frame) var(--frame) 0;
    max-width: 1800px;
}

.contact-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2em;
}

.contact-wrap ul,
.contact-wrap li {
    list-style: none;
}

.contact-header {
    margin-bottom: clamp(30px, 4vw, 80px);
}

.contact-title {
    font-size: clamp(0.6875rem, 0.65vw, 1.625rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 2em;
    font-weight: 400;
}

.contact-note {
    font-size: clamp(0.875rem, 0.8vw, 2.25rem);
    line-height: 1.6;
    color: #1a1a1a;
    max-width: clamp(400px, 35vw, 1200px);
    margin-bottom: 2em;
    margin-top: 0;
}

.contact-email {
    display: inline-block;
    margin-top: 0;
    font-size: clamp(0.6875rem, 0.65vw, 1.625rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
}

.contact-links {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.contact-social {
    display: inline-block;
    font-size: clamp(0.6875rem, 0.65vw, 1.625rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
}

.contact-social:hover,
.contact-email:hover {
    text-decoration: underline;
}

.contact-form {
    width: 100%;
    max-width: clamp(300px, 25vw, 800px);
    margin-top: 0;
}

.contact-input,
.contact-textarea {
    font-family: inherit;
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.15);
    background: transparent;
    outline: none;
    font-size: clamp(0.75rem, 0.75vw, 1.875rem);
    padding: clamp(6px, 0.8vw, 20px) 0;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-radius: 0;
    transition: border-bottom-color 0.3s ease;
}

.contact-textarea {
    resize: vertical;
    min-height: 25px;
    padding-bottom: 8px;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: rgba(26, 26, 26, 0.4);
    font-size: clamp(0.625rem, 0.55vw, 1.5rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-input:focus,
.contact-textarea:focus {
    border-bottom-color: rgba(26, 26, 26, 0.8);
}

.contact-button {
    font-family: inherit;
    font-weight: 400;
    border: 1px solid #1a1a1a;
    background: transparent;
    padding: clamp(10px, 1vw, 30px) clamp(20px, 2vw, 60px);
    font-size: clamp(0.625rem, 0.55vw, 1.5rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    color: #1a1a1a;
}

.contact-button:hover {
    background: #1a1a1a;
    color: #fff;
}

.thank-you-page {
    min-height: 100vh;
}

.thanks-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--frame);
}

.thanks-wrap {
    width: min(100%, 680px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(14px, 1.6vw, 22px);
    transform: translateY(-4vh);
}

.rtl-page .thanks-wrap {
    align-items: stretch;
    text-align: right;
    margin-left: auto;
    margin-right: min(30vw, 420px);
}

.rtl-page .thanks-wrap > * {
    width: 100%;
}

.thanks-title {
    font-size: clamp(1.1rem, 1.35vw, 1.6rem);
    line-height: 1.05;
    font-weight: 400;
    color: #1a1a1a;
}

.thanks-text {
    font-size: clamp(0.72rem, 0.7vw, 0.88rem);
    line-height: 1.75;
    color: rgba(26, 26, 26, 0.72);
    max-width: none;
}

.thanks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 4px;
}

.thanks-link {
    text-decoration: none;
    color: #1a1a1a;
    font-size: clamp(0.6875rem, 0.65vw, 1.625rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: opacity 0.25s ease;
}

.thanks-link:hover {
    opacity: 0.55;
}

.contact-text-col {
    gap: 25px;
}

.hp-field {
    display: none;
}

/* =========================================
   11. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 1000px) {
    .about-split-layout,
    .contact-split-layout {
        flex-direction: column;
        height: auto;
    }
}

@media (max-width: 900px) {
    html {
        height: 100%;
        overflow: hidden;
        scrollbar-gutter: auto;
    }

    body {
        height: 100%;
        width: 100%;
        overflow: hidden;
    }

    .container {
        flex-direction: column;
        height: 100dvh;
        width: 100%;
        overflow: hidden;
        padding-left: 0;
    }

    .sidebar {
        flex: 0 0 auto;
        width: 100%;
        height: 80px;
        padding: 0 var(--mobile-side-pad);
        position: sticky;
        top: 0;
        background: rgba(250, 250, 248, 0.95);
        backdrop-filter: blur(5px);
        justify-content: center;
        border-bottom: none;
    }

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

    .logo-container {
        width: 180px;
    }

    .logo-subtitle,
    .sidebar-footer {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background: #fafaf8;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: 100;
        transform: none;
    }

    nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar .lang-switch {
        display: none;
    }

    .mobile-lang-switch {
        display: none;
        justify-content: center;
        align-items: center;
        gap: 8px;
        position: absolute;
        bottom: 44px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        direction: ltr;
    }

    nav.is-open .mobile-lang-switch {
        display: flex;
    }

    .nav-links {
        margin-top: 0;
        text-align: center;
        gap: 35px;
        align-items: center;
    }

    .nav-links li {
        margin-bottom: 0;
    }

    .nav-links a {
        font-size: 1rem;
        letter-spacing: 0.2em;
        transform: none !important;
    }

    .content {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding-top: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }

    .content::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .hero-image {
        width: 100%;
        padding: 0 var(--mobile-side-pad) 20px var(--mobile-side-pad);
        height: 70vh;
        cursor: pointer;
    }

    .hero-image picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 0;
        padding: 0 var(--mobile-side-pad) 40px var(--mobile-side-pad);
        gap: 40px;
    }

    .project-detail-main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 var(--mobile-side-pad) 40px var(--mobile-side-pad);
    }

    .project-data-page {
        padding: 40px var(--mobile-side-pad);
    }

    .project-data-shell {
        padding-left: 0;
    }

    .project-text-block {
        width: 100%;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .about-split-layout,
    .contact-split-layout,
    .contact-wrap {
        width: 100%;
        padding: 0 var(--mobile-side-pad) 50px var(--mobile-side-pad);
        height: auto;
        gap: 30px;
    }

    .thanks-shell {
        padding: 40px var(--mobile-side-pad);
        align-items: center;
    }

    .thanks-wrap,
    .rtl-page .thanks-wrap {
        width: 100%;
        align-items: flex-start;
        text-align: left;
        transform: translateY(-2vh);
    }

    .rtl-page .thanks-wrap {
        align-items: flex-end;
        text-align: right;
    }

    .thanks-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .rtl-page .thanks-actions {
        align-items: flex-end;
    }

    .about-image-col,
    .contact-image-col {
        height: auto;
        width: 100%;
    }

    .about-image-col img,
    .contact-image-col img {
        width: 100%;
        height: auto;
        max-width: none;
    }

    .about-text-col,
    .contact-text-col {
        padding-top: 10px;
        max-width: 100%;
        width: 100%;
    }

    .contact-form {
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }

    .contact-email {
        margin-top: 0;
        display: inline-block;
        word-break: break-word;
    }

    .contact-links {
        margin-top: 10px;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .project-text-block {
        width: 100%;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .project-data-form,
    .project-data-list {
        display: flex;
        flex-direction: column;
    }

    .project-data-list {
        gap: 3px;
    }

    .project-data-row {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .project-data-row dt {
        flex-basis: auto;
    }

    .project-data-list dd {
        margin-bottom: 8px;
    }

    .project-collage-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-collage-gallery img.landscape,
    .project-collage-gallery img.portrait {
        grid-column: span 1;
        aspect-ratio: auto;
        height: auto;
    }
}

/* =========================================
   LANGUAGE SWITCH - BASE
   ========================================= */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.625rem, 0.55vw, 1.2rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mobile-lang-switch {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.625rem, 0.55vw, 1.2rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lang-switch a,
.mobile-lang-switch a {
    text-decoration: none;
    color: rgba(26, 26, 26, 0.45);
    transition: color 0.25s ease;
}

.lang-switch a.active,
.lang-switch a:hover,
.mobile-lang-switch a.active,
.mobile-lang-switch a:hover {
    color: #1a1a1a;
}

.lang-switch span,
.mobile-lang-switch span {
    color: rgba(26, 26, 26, 0.35);
}

/* =========================================
   HEBREW ABOUT PAGE – CLEAN RESET
   ========================================= */

.about-he-page {
    --he-rail-width: 150px;
    --he-rail-gap: 60px;
    --he-right-pad: 60px;
    --he-text-width: 540px;
}

.about-he-page .lang-switch {
    position: absolute;
    right: 20px;
    left: auto;
    bottom: calc(var(--frame) - 10px);

    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 0;

    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    text-align: right;
    direction: rtl;
}

.about-he-page .mobile-lang-switch {
    display: none;
}

.about-he-page .sidebar {
    flex: 0 0 calc(var(--he-right-pad) + var(--he-rail-width) + var(--he-rail-gap));
    width: calc(var(--he-right-pad) + var(--he-rail-width) + var(--he-rail-gap));
    height: 100vh;
    padding: var(--frame) var(--he-right-pad) var(--frame) 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
}

.about-he-page .container {
    padding-right: calc(var(--he-right-pad) + var(--he-rail-width) + var(--he-rail-gap));
    padding-left: 0;
}

.about-he-page .sidebar-top {
    width: var(--he-rail-width);
    min-height: 100%;
    margin-left: auto;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.about-he-page .logo-container {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: right;
}

.about-he-page .logo-container a {
    display: block;
    width: 100%;
}

.about-he-page .logo-container img {
    display: block;
    width: 100%;
    height: auto;
}

.about-he-page nav {
    position: absolute;
    top: 42%;
    right: 0;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
}

.about-he-page .nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.8em;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: right;
}

.about-he-page .nav-links li {
    width: 100%;
    text-align: right;
}

.about-he-page .nav-links a {
    display: block;
    width: 100%;
    text-align: right;
    direction: rtl;
    unicode-bidi: plaintext;
    transform-origin: right center;
    text-transform: none;
}

.about-he-page .content {
    direction: ltr;
    display: flex;
    justify-content: flex-end;
}

.about-he-page .projects-grid {
    padding: var(--frame) 0 var(--frame) var(--he-right-pad);
}

.about-he-page .project-meta-grid {
    direction: rtl;
    text-transform: none;
}

.about-he-page .project-meta-grid span {
    unicode-bidi: plaintext;
}

.about-he-page .hero-image {
    padding: var(--frame) 0 var(--frame) var(--he-right-pad);
}

.about-he-page .project-detail-main {
    display: block;
    direction: rtl;
    text-align: right;
    padding: var(--frame) 0 var(--frame) var(--he-right-pad);
    margin-right: 0;
    margin-left: auto;
}

.about-he-page .project-data-page {
    direction: rtl;
    justify-content: flex-start;
    padding: var(--frame) 0 var(--frame) var(--he-right-pad);
    text-align: right;
}

.about-he-page .project-text-block,
.about-he-page .project-title,
.about-he-page .project-meta,
.about-he-page .project-description,
.about-he-page .project-photo-credit,
.about-he-page .project-data-page-title,
.about-he-page .project-data-section-title,
.about-he-page .project-data-list,
.about-he-page .project-data-status {
    text-align: right;
}

.about-he-page .project-data-section-title {
    text-transform: none;
}

.project-data-standalone-he .project-data-page {
    direction: rtl;
    text-align: right;
}

.project-data-standalone-he .project-data-shell {
    padding-left: 0;
    padding-right: calc(var(--he-right-pad) + var(--he-rail-width) + var(--he-rail-gap));
}

.project-data-standalone-he .project-data-page-inner {
    margin-left: auto;
}

.project-data-standalone-he .project-data-list {
    align-items: stretch;
}

.project-data-standalone-he .project-data-row {
    direction: rtl;
    flex-direction: row;
    justify-content: flex-start;
}

.project-data-standalone-he .project-data-row dt,
.project-data-standalone-he .project-data-row dd,
.project-data-standalone-he .project-data-section-title,
.project-data-standalone-he .project-data-status,
.project-data-standalone-he .project-data-intro,
.project-data-standalone-he .project-data-page-title {
    text-align: right;
}

.project-data-standalone-he .project-data-value-with-suffix {
    direction: ltr;
    justify-content: flex-end;
}

.about-he-page .project-photo-credit {
    text-transform: none;
}

.about-he-page .contact-split-layout {
    justify-content: flex-end;
    gap: var(--he-right-pad);
    width: 100%;
    max-width: 100%;
    padding: var(--frame) 0 var(--frame) var(--he-right-pad);
    margin-left: auto;
    margin-right: 0;
}

.about-he-page .contact-image-col img {
    object-position: right top;
}

.about-he-page .contact-text-col {
    flex: 0 1 clamp(320px, 28vw, var(--he-text-width));
    max-width: clamp(320px, 28vw, var(--he-text-width));
    min-width: 0;
    direction: rtl;
    text-align: right;
    align-items: stretch;
}

.about-he-page .contact-form {
    direction: rtl;
    width: 100%;
    max-width: none;
}

.about-he-page .contact-input,
.about-he-page .contact-textarea {
    text-align: right;
}

.about-he-page .contact-links {
    width: 100%;
    align-items: flex-end;
}

.about-he-page .contact-social,
.about-he-page .contact-email {
    direction: ltr;
    unicode-bidi: plaintext;
}

.about-he-page .about-he-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap);
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
    min-height: 100vh;
    padding-top: var(--frame);
    padding-right: 0;
    padding-bottom: var(--frame);
    padding-left: 0;
    margin-left: auto;
    margin-right: 0;
}

.about-he-page .about-he-text {
    width: clamp(320px, 28vw, var(--he-text-width));
    flex: 0 1 clamp(320px, 28vw, var(--he-text-width));
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 34px;
    text-align: right;
    direction: rtl;
}

.about-he-page .about-he-block p {
    margin: 0;
    font-size: clamp(0.82rem, 0.74vw, 1.35rem);
    line-height: 1.8;
    color: #1a1a1a;
    text-align: right;
}

.about-he-page .about-he-image {
    flex: 0 0 auto;
    height: calc(100vh - (var(--frame) * 2));
    align-self: flex-start;
}

.about-he-page .about-he-image img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 45vw;
    object-fit: contain;
    object-position: top right;
}

/* =========================================
   HEBREW ABOUT PAGE – MOBILE
   Matches English mobile behavior
   ========================================= */
@media (max-width: 900px) {
    .about-he-page .sidebar {
        flex: 0 0 auto;
        width: 100%;
        height: 80px;
        padding: 0 var(--mobile-side-pad);
        position: sticky;
        top: 0;
        right: auto;
        background: rgba(250, 250, 248, 0.95);
        backdrop-filter: blur(5px);
        justify-content: center;
        align-items: stretch;
        border-bottom: none;
    }

    .about-he-page .container {
        padding-right: 0;
    }

    .about-he-page .sidebar-top {
        width: 100%;
        min-height: 0;
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        direction: ltr;
    }

    .about-he-page .logo-container {
        width: 180px;
        margin: 0;
        text-align: left;
    }

    .about-he-page .logo-container a,
    .about-he-page .logo-container img {
        width: 100%;
    }

    .about-he-page .sidebar .lang-switch {
        display: none;
    }

    .about-he-page .hamburger {
        display: flex;
    }

    .about-he-page nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background: #fafaf8;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: 100;
        transform: none;
    }

    .about-he-page nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .about-he-page .mobile-lang-switch {
        display: none;
        justify-content: center;
        align-items: center;
        gap: 8px;
        position: absolute;
        bottom: 44px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        direction: ltr;
    }

    .about-he-page nav.is-open .mobile-lang-switch {
        display: flex;
    }

    .about-he-page .nav-links {
        width: auto;
        margin: 0;
        padding: 0;
        gap: 35px;
        align-items: center;
        text-align: center;
    }

    .about-he-page .nav-links li,
    .about-he-page .nav-links a {
        width: auto;
        text-align: center;
        direction: ltr;
    }

    .about-he-page .content {
        display: block;
    }

    .about-he-page .hero-image {
        width: 100%;
        height: 70vh;
        padding: 0 var(--mobile-side-pad) 20px var(--mobile-side-pad);
    }

    .about-he-page .hero-image picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .about-he-page .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 25%;
    }

    .about-he-page .projects-grid {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 0;
        padding: 0 var(--mobile-side-pad) 40px var(--mobile-side-pad);
        gap: 40px;
    }

    .about-he-page .project-detail-main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 var(--mobile-side-pad) 40px var(--mobile-side-pad);
    }

    .about-he-page .project-data-page {
        padding: 0 var(--mobile-side-pad) 40px var(--mobile-side-pad);
    }

    .project-data-standalone-he .project-data-shell {
        padding-right: 0;
    }

    .about-he-page .contact-split-layout {
        width: 100%;
        padding: 0 var(--mobile-side-pad) 50px var(--mobile-side-pad);
        height: auto;
        gap: 30px;
    }

    .about-he-page .contact-image-col {
        order: 1;
        width: 100%;
        max-width: 100%;
        height: auto;
        flex: none;
    }

    .about-he-page .contact-image-col img {
        width: 100%;
        height: auto;
        max-width: none;
    }

    .about-he-page .contact-text-col {
        order: 2;
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .about-he-page .about-he-layout {
        flex-direction: column;
        width: 100%;
        min-height: auto;
        height: auto;
        gap: 30px;
        padding: 0 var(--mobile-side-pad) 50px var(--mobile-side-pad);
        margin: 0;
    }

    .about-he-page .about-he-image {
        order: 1;
        width: 100%;
        max-width: 100%;
        height: auto;
        flex: none;
    }

    .about-he-page .about-he-image img {
        width: 100%;
        height: auto;
        max-width: none;
    }

    .about-he-page .about-he-text {
        order: 2;
        width: 100%;
        max-width: 100%;
        flex: none;
    }
}
