/*!
Theme Name: oribsn
Author: Ori Ben-Simon
Author URI: oribsn.dev
Description: Custom WordPress Theme
Version: 1.0.0
Text Domain: oribsn
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
* { outline: none !important; box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

@font-face {
  font-family: 'ploni';
  src: url('assets/fonts/ploni/ploni-regular-aaa.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap; 
}
@font-face {
  font-family: 'ploni';
  src: url('assets/fonts/ploni/ploni-medium-aaa.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap; 
}
@font-face {
  font-family: 'ploni';
  src: url('assets/fonts/ploni/ploni-bold-aaa.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap; 
}

@font-face { 
   font-family: 'caravan'; 
   src: url('assets/fonts/caravan/caravan-210-aaa.otf') format('opentype'); 
   font-weight: 900; 
   font-style: normal; 
   font-display: swap; 
}
@font-face { 
   font-family: 'gloria'; 
   src: url('assets/fonts/gloria/gloria-bold-aaa.otf') format('opentype'); 
   font-weight: 700; 
   font-style: normal; 
   font-display: swap; 
}

:root { --Pink: #FFC1DF; --Plum: #7D2A52; --Sky: #A6C8F5; --Blue: #00468C; }
html { font-size: 20px; }
body { font-family: 'ploni'; margin: 0; padding: 0; background-color: var(--Plum); }
.home-wrapper { position: relative; width: 100vw; height: 100vh; overflow: hidden; cursor: none; }
.home-bg-video { position: absolute; top: 50%; left: 50%; z-index: 0; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover; pointer-events: none; }
.main-logo-wrapper { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 75vw; max-width: 1100px; z-index: 1; pointer-events: none; }
.main-logo { width: 100%; height: auto; display: block; opacity: 0.7; }
.zones-container { display: flex; flex-direction: row; width: 100vw; height: 100vh; position: absolute; top: 0; left: 0; z-index: 10; }
.zone { flex: 1; height: 100vh; cursor: pointer; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 3rem 0; box-sizing: border-box; }
.zone-label { color: #fff; font-size: 0.9rem; text-align: center; width: 100%; display: block; pointer-events: none; }
.custom-cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; opacity: 0; transition: opacity 0.3s ease; transform: translate(-50%, -50%); will-change: transform; font-family: 'caravan';}
.cursor-circle { width: 8.4rem; height: 8.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem;text-align: center; line-height: 1; transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease; }
.cursor-talk, .cursor-projects { background-color: var(--Pink); color: var(--Plum); transform: rotate(-5deg); }
.cursor-about { width: 5.85rem; height: 5.85rem; background-color: var(--Blue); color: var(--Sky); transform: rotate(15deg); }
.cursor-talk {font-size: 1.44445rem;}
.cursor-projects {width: 7.75rem; height: 7.75rem;}

/* Home mobile — 402×874 reference. Three full-height links, two label rows. */
@media only screen and (max-width: 768px) {
  .home-wrapper { width: 100%; height: 100vh; height: 100svh; height: 100dvh; cursor: auto; }
  .home-wrapper .home-bg-video { inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; transform: none; object-fit: cover; object-position: center; }
  .home-wrapper .main-logo-wrapper { width: calc(100% - 2.5rem); max-width: none; }
  .home-wrapper .zones-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; height: 100%; direction: ltr; }
  .home-wrapper .zone { display: block; min-width: 0; height: 100%; padding: 0; touch-action: manipulation; }
  .home-wrapper .zone-label { position: absolute; left: 0; width: 100%; padding: 0; font-size: 1.1875rem; font-weight: 400; line-height: 1.5rem; white-space: nowrap; direction: rtl; transform: translateY(-50%); }
  .home-wrapper .zone-label:first-child { top: 27.92%; }
  .home-wrapper .zone-label:last-child { top: 75.06%; }
  .home-wrapper .zone[data-zone="talk"] .zone-label { padding-left: 1rem; text-align: left; }
  .home-wrapper .zone[data-zone="projects"] .zone-label { padding-right: 1.25rem; text-align: right; }
  .home-wrapper .zone:focus-visible { outline: 2px solid #fff !important; outline-offset: -4px; }
  .home-wrapper .custom-cursor { display: none; }
}


/* ==========================================================================
   משתני צבעים ומעברי רקע (עמוד אודות)
   ========================================================================== */
:root { --Pink: #FFC1DF; --Plum: #7D2A52; --Sky: #A6C8F5; --Blue: #00468C; --HighlightPink: #CF5BB6; --InkNavy: #0D3B57; --TitleNarrow: 0.84; --TransitionSpeed: 0.6s; }
.transition-bg { min-height: 100vh; background-color: var(--Pink); }
/* .scroll-bg-fixed: שכבת רקע אמיתית שנשארת פיקסדת מאחורי כל התוכן ולעולם לא זזה עם הגלילה.
   הצבע שלה מתעדכן ב-JS (ראה assets/js/scripts.js) עם קרוספייד חלק בכל פריים כשעוברים
   בין סקשנים - זה מה שיוצר את אפקט "הצבע פיקסד בעמוד ומתחלף במקום".
   z-index שלילי מפורש + #page עם z-index:0 מבטיחים סטאקינג נכון תמיד, בלי תלות בסדר
   ה-DOM (חשוב כי admin bar / פלאגינים אחרים עלולים להוסיף אלמנטים פיקסדים משלהם). */
.scroll-bg-fixed { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-color: var(--Pink); }
#page { position: relative; z-index: 0; }

/* ==========================================================================
   הדר ותפריט
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; width: 100%; padding: 2.2rem 3.4rem 0 3.8rem; z-index: 100; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.header-inner { display: flex; width: 100%; justify-content: space-between; align-items: flex-start; pointer-events: auto; }
.logo-link { display: block; margin-top: 0.6rem; }
.header-logo { width: 12.65rem; height: 1.8rem; background-color: var(--Plum); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; transition: background-color var(--TransitionSpeed) ease; }
.main-nav { --nav-ink: var(--Plum); --nav-bubble-ink: var(--Pink); display: flex; align-items: center; height: 2.85rem; position: relative; border-radius: 3rem; padding: 0.1rem 0.53rem; background: #FFE0EF; box-shadow: 0 0 2.5rem 0 rgba(0, 0, 0, 0.13); transition: background-color var(--TransitionSpeed) ease; }
.nav-link { position: relative; z-index: 2; white-space: nowrap; padding: 0.55rem 0.95rem; text-decoration: none; color: var(--nav-ink); font-size: 0.9rem; font-weight: 500; line-height: 1; transition: color var(--TransitionSpeed) ease; }
.nav-bubble { position: absolute; height: 1.8rem; top: 0.53rem; bottom: 0.1rem; left: 0; background-color: var(--Plum); border-radius: 3rem; z-index: 1; opacity: 0; pointer-events: none; transition: background-color var(--TransitionSpeed) ease; }

/* JS paints the bubble and its clipped text in the same frame; page classes only choose its resting position. */
.main-nav.is-bubble-ready .nav-bubble { opacity: 1; }
.nav-link-highlight { position: absolute; inset: 0; padding: inherit; color: var(--nav-bubble-ink); pointer-events: none; user-select: none; clip-path: inset(0 100% 0 0); transition: color var(--TransitionSpeed) ease; }

/* חילופי צבעים בהדר לפי הסקשן הנוכחי */
.site-header[data-theme="pink"] .header-logo { background-color: var(--Plum); }
.site-header[data-theme="pink"] .main-nav { --nav-ink: var(--Plum); --nav-bubble-ink: var(--Pink); background: #FFE0EF; }
.site-header[data-theme="pink"] .nav-bubble { background-color: var(--Plum); }

.site-header[data-theme="sky"] .header-logo { background-color: var(--Blue); }
.site-header[data-theme="sky"] .main-nav { --nav-ink: var(--Blue); --nav-bubble-ink: var(--Sky); background: #D6EBFF; }
.site-header[data-theme="sky"] .nav-bubble { background-color: var(--Blue); }

.site-header[data-theme="blue"] .header-logo { background-color: var(--Sky); }
.site-header[data-theme="blue"] .main-nav { --nav-ink: var(--Sky); --nav-bubble-ink: var(--Blue); background: #346BA3; }
.site-header[data-theme="blue"] .nav-bubble { background-color: var(--Sky); }

.site-header[data-theme="plum"] .header-logo { background-color: var(--Pink); }
.site-header[data-theme="plum"] .main-nav { --nav-ink: var(--Pink); --nav-bubble-ink: var(--Plum); background: #BE94A8; }
.site-header[data-theme="plum"] .nav-bubble { background-color: var(--Pink); }

/* ==========================================================================
   עמוד אודות - סקשן 1: הירו
   ========================================================================== */
.about-mobile-only, .team-info-strip.about-mobile-only { display: none; }
.about-section { position: relative; overflow: hidden; display: block; }
/* ⚠️ ללא background-color פר-סקשן בכוונה: הרקע עכשיו הוא גרדיאנט רציף אחד
   שמצויר על .about-wrapper (ראה assets/js/scripts.js סעיף 6). כל סקשן שקוף
   ומגלה פרוסה ממנו תוך כדי גלילה, ובכך המעבר בין הצבעים חלק ולא נחתך בגבול. */
.hero-section { width: 100%; height: 64.3rem; }
.hero-title { position: absolute; width: max-content; z-index: 1; font-size: 8.1rem; font-weight: 900; line-height: 0.71; color: var(--Plum); top: 10.3rem; right: 3.65rem; margin: 0; text-align: right; font-family: 'caravan'; }
.hero-plant { position: absolute; z-index: 2; left: 0; top: 14.9rem; width: 27.85rem; pointer-events: none; }
.hero-group { position: absolute; z-index: 3; left: 0; bottom: 0; width: 100%; pointer-events: none; }

/* ==========================================================================
   עמוד אודות - סקשן 2: טקסט ולוגואים (תכלת)
   ========================================================================== */
.text-logos-section { padding: 9.05rem 0 9.25rem 0; }
.intro-text { width: 53rem; max-width: calc(100% - 11.8rem); margin: 0 5.8rem 0 auto; font-size: 1.89rem; line-height: 1.305; color: var(--InkNavy); text-align: right; }
.highlight-pink { color: var(--HighlightPink); }
.clients-grid { display: flex; gap: 3rem; justify-content: center; align-items: center; margin-top: 3.4rem; }
.client-logo-wrapper { width: 10rem; height: 10rem; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.slot-logo { width: 100%; height: 100%; object-fit: contain; display: block; }

/* אנימציות רולטה (Slot Machine) */
@keyframes slotDip { 0% { transform: translateY(0); } 100% { transform: translateY(8px); } }
@keyframes slotFlyUp { 0% { transform: translateY(8px); opacity: 1; } 100% { transform: translateY(-55%); opacity: 0; } }
@keyframes slotFlyIn { 0% { transform: translateY(55%); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.slot-animating-out { animation: slotDip 0.28s ease-out forwards, slotFlyUp 0.5s cubic-bezier(0.45, 0, 0.2, 1) 0.28s forwards; }
.slot-animating-in { animation: slotFlyIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* ==========================================================================
   עמוד אודות - סקשן 3: מה עושות? וגלריה (ורוד)
   ========================================================================== */
.services-section { padding: 8.335rem 0 9.97rem 0; }
.services-container { padding-right: 6.5rem; }
/* הערה: בעיצוב הכותרות הפנימיות משתמשות בגזרה צרה יותר של Caravan (כ-79% ברוחב הגליף)
   שאינה קיימת ב-assets/fonts/caravan (יש רק caravan-210). עד שיתקבל הקובץ הנכון -
   מדמים אותה עם scaleX. כשהפונט יגיע: להסיר את שתי שורות ה-transform ולעדכן את --TitleNarrow ל-1. */
.section-title { font-family: 'caravan'; font-weight: 900; font-size: 2.51rem; line-height: 1; color: var(--Plum); text-align: right; margin: 0; transform: scaleX(var(--TitleNarrow)); transform-origin: right center; }
.services-grid { display: grid; grid-template-columns: 19.81rem 21.39rem 1fr; row-gap: 2.145rem; margin-top: 4.405rem; }
.service-item { display: flex; align-items: center; gap: 0.9rem; font-family: 'gloria'; font-weight: 700; font-size: 1.2rem; line-height: 1; color: var(--Plum); }
.service-icon { width: 2.6rem; height: 2.6rem; display: block; flex-shrink: 0; }
.service-icon--creative { width: 2.2rem; height: 2.2rem; }
.service-icon--production { width: 2.05rem; height: 2.05rem; }

/* גלריית תמונות */
.image-marquee-wrapper { margin-top: 5.365rem; width: 100%; overflow: hidden; }
.image-marquee { display: flex; gap: 0.985rem; width: max-content; transform: translateX(12.545rem); }
.marquee-img { width: 23.33rem; height: 21.83rem; object-fit: cover; border-radius: 3rem; flex-shrink: 0; display: block; }

/* ==========================================================================
   עמוד אודות - סקשן 4: צוות (כחול)
   ========================================================================== */
.team-section { padding: 6.79rem 0 7.8rem 0; }
.team-container { padding-right: 4.5rem; }
.team-title { color: var(--Sky); margin-inline-start: 0.25rem; }
.team-subtitle { width: 49rem; max-width: 100%; margin: 2.39rem 0 0 auto; font-size: 1.89rem; line-height: 1.305; color: var(--Sky); text-align: right; }
.team-grid { display: flex; gap: 1.535rem; margin-top: 5.125rem; margin-inline-start: 0.32rem; }
.team-col { display: flex; flex-direction: column; gap: 1.785rem; }
.team-col-offset { margin-top: 7.345rem; }
.team-member { position: relative; width: 19.4rem; height: 23.28rem; border: 0; border-radius: 3rem; padding: 0; overflow: hidden; flex-shrink: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; appearance: none; -webkit-appearance: none; }
.team-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* התמונה של לני מקורפת בעיצוב הרבה יותר קרוב ממה ש-cover נותן על קובץ המקור.
   עדיף לייצא מחדש את ln.png חתוכה; עד אז מדמים את הזום. */
.team-img--zoom { transform: scale(1.48); transform-origin: 50% 100%; }

/* הסטריפ השקוף (Glassmorphism) */
.team-info-strip { position: absolute; bottom: 2.25rem; right: 2.9rem; left: 2.9rem; height: 2.33rem; background: linear-gradient(to left, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 3rem; display: flex; align-items: center; justify-content: space-between; }
.team-badge { width: 2.33rem; height: 2.33rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 1.15rem; font-family: 'ploni'; flex-shrink: 0; }
.badge-blue { background-color: #3377FD; }
.badge-orange { background-color: #FE9940; }
.badge-green { background-color: #27AE60; }
.badge-pink { background-color: var(--Pink); color: var(--Plum); }
.team-name { color: #fff; font-weight: 700; font-size: 1.17rem; line-height: 1; padding-left: 1.05rem; }

/* ==========================================================================
   פופאפ איש צוות - חיתוך סטטי לשלב הראשון
   ========================================================================== */
/* The ticker keeps its natural height; the stage fills only the remaining blue area.
   Container units scale the artwork against that area, independently of the site's root font size. */
.team-popup { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; background-color: var(--Blue); color: #fff; }
.team-popup[hidden] { display: none; }
.team-popup-stage { position: relative; flex: 1 1 0%; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; container-type: size; }
.team-popup-content { --team-copy-height: 9.396rem; --team-art-unit: max(0.01rem, min(1rem, calc((100cqw - 12rem) / 63.75), calc((100cqh - 5rem) / 31))); display: flex; align-items: center; justify-content: center; gap: 1.3rem; width: max-content; max-width: calc(100% - 12rem); min-width: 0; min-height: 0; direction: ltr; }
.team-popup-close { position: absolute; top: 4.95rem; right: 2.05rem; z-index: 6; width: 1.45rem; height: 1.45rem; border: 0; padding: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; }
.team-popup-close img { display: block; width: 100%; height: 100%; }
/* Six lines: 1.08rem font size × 1.45 line height × 6. Only this region scrolls. */
.team-popup-copy { position: relative; z-index: 2; flex: 0 1 26.7rem; width: 26.7rem; min-width: 0; min-height: 0; max-height: var(--team-copy-height); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(168, 216, 252, 0.6) transparent; scrollbar-gutter: stable; padding-inline-end: 0.4rem; font-size: 1.08rem; line-height: 1.45; text-align: right; direction: rtl; overflow-wrap: anywhere; }
.team-popup-copy > p:first-child { margin: 0; font-size: inherit; font-weight: 400; line-height: inherit; color: #fff; }
.team-popup-copy:focus-visible { box-shadow: inset 0 0 0 1px rgba(168, 216, 252, 0.6); }
/* Local em units scale the entire collage together. Its bounds include the curved arrow and rotated star. */
.team-popup-visual { position: relative; flex: 0 0 auto; width: 35.75em; height: 31em; font-size: var(--team-art-unit); direction: rtl; }
.team-popup-title { position: absolute; top: 0; right: 6em; z-index: 4; width: 23.5em; max-width: 100%; margin: 0; font-size: inherit; }
.team-popup-title img { display: block; width: 100%; height: auto; max-height: 10em; object-fit: contain; }
.team-popup-photo-wrap { position: absolute; top: 5.8em; right: 5.15em; z-index: 1; width: 19.5em; height: 23.2em; transform: rotate(7.5deg); transform-origin: center; }
.team-popup-photo-wrap::before { content: ''; position: absolute; top: -0.55em; right: -1em; z-index: 2; width: 5.15em; height: 4em; background: rgba(110, 171, 230, 0.58); clip-path: polygon(25% 0, 100% 72%, 74% 100%, 0 24%); }
.team-popup-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.team-popup-whale { position: absolute; top: 15.8em; left: 3.8em; z-index: 3; width: 12.15em; height: auto; max-height: 8em; object-fit: contain; }
.team-popup-curve-arrow { position: absolute; left: 0; bottom: 0.7em; z-index: 3; width: 14.65em; height: 6.25em; object-fit: contain; }
.team-popup-star { position: absolute; top: 18.25em; right: 0.6em; z-index: 4; display: flex; align-items: center; justify-content: center; width: 7.25em; aspect-ratio: 1; background: url('assets/img/banner-star.svg') center / contain no-repeat; font-family: 'ploni'; font-size: inherit; font-weight: 700; line-height: 1; color: #A8D8FC; transform: rotate(7deg); }
/* The star retains its 7deg rotation; the initials add 8deg for a total of 15deg. */
.team-popup-initials { display: inline-block; font-size: 2.25em; transform: rotate(8deg); }
.team-popup-arrows { position: absolute; top: 4.95rem; bottom: 4.95rem; left: 2.2rem; z-index: 5; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.team-popup-arrow { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2rem; height: 2rem; border: 0; padding: 0; background: transparent; opacity: 0.75; cursor: default; pointer-events: auto; appearance: none; -webkit-appearance: none; }
.team-popup-arrow img { display: block; width: 100%; height: 100%; }
.team-popup-arrow--down img { transform: scaleY(-1); }
.project-next-bar.team-next-bar { flex: 0 0 auto; border: 0; margin: 0; background-color: var(--Pink); cursor: pointer; appearance: none; -webkit-appearance: none; }
.team-next-bar .project-next-item { color: var(--Plum); }

@media only screen and (max-width: 900px) {
  .team-popup-close { top: 1.5rem; right: 1.25rem; }
  .team-popup-arrows { display: none; }
}

/* Temporary narrow-screen arrangement until the mobile design is supplied. */
@media only screen and (max-width: 900px) and (orientation: portrait), only screen and (max-width: 600px) {
  .team-popup-content { --team-copy-height: min(9.396rem, 40cqh); --team-art-unit: max(0.01rem, min(1rem, calc((100cqw - 3rem) / 35.75), calc((100cqh - var(--team-copy-height) - 4.6rem) / 31))); flex-direction: column-reverse; gap: 1rem; width: calc(100% - 3rem); max-width: none; }
  .team-popup-copy { flex: 0 0 auto; width: 100%; }
}

/* אנימציות גלילה (Fade Up) */
/*
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up-delay { opacity: 0; transform: translateY(60px); transition: opacity 1s ease 0.2s, transform 1s ease 0.2s; }
.in-view .fade-up, .in-view .fade-up-delay { opacity: 1; transform: translateY(0); }
*/


/* ==========================================================================
   פוטר (מוצג רק בעמודים פנימיים - ראה elements/footer.php)
   ========================================================================== */
.site-footer { background-color: var(--Blue); padding: 0 2.95rem 4.1rem 4.675rem; }

/* בלוק ה-CTA */
.footer-cta { position: relative; padding-top: 8.49rem; }
.cta-pill { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 9.14rem; border-radius: 4.57rem; padding-right: 1.5rem; background-color: var(--Sky); text-decoration: none; font-family: 'caravan'; font-weight: 900; font-size: 4.56rem; line-height: 1; color: var(--Blue); }

/* קולאז' התמונות שמציץ מעל הכפתור - דקורטיבי, מיקום מקורב לעיצוב */
.cta-collage { position: absolute; z-index: 2; top: 0; right: 28.6rem; width: 22.4rem; height: 8.4rem; pointer-events: none; }
.cta-collage-img { position: absolute; width: 8.6rem; height: 7.6rem; object-fit: cover; border-radius: 1.1rem; transform: rotate(-21deg); }
.cta-collage-img--1 { left: 0; top: 4.6rem; }
.cta-collage-img--2 { left: 3.1rem; top: 2.4rem; }
.cta-collage-img--3 { left: 8.1rem; top: 0.1rem; }
.cta-collage-img--4 { left: 12.9rem; top: -0.6rem; }

/* לוגו וקישורים */
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 13.325rem; }
.footer-links { display: flex; gap: 6.95rem; }
.footer-col { list-style: none; margin: 0; padding: 0; text-align: right; }
.footer-col li + li { margin-top: 0; }
.footer-col a { color: var(--Sky); text-decoration: none; font-size: 1.05rem; line-height: 1.47; transition: opacity 0.3s ease; }
.footer-col a:hover { opacity: 0.7; }
.footer-logo-link { display: block; margin-top: 1.66rem; }
.footer-logo { width: 9.35rem; height: 1.325rem; background-color: var(--Sky); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }

.footer-divider { border: 0; height: 1px; background-color: rgba(161, 218, 248, 0.6); margin: 2.265rem 0 0 0; }

/* שורה תחתונה */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 1.55rem; }
.footer-social { display: flex; direction: ltr; gap: 0.8rem; }
.social-link { display: block; width: 2.85rem; height: 2.85rem; transition: opacity 0.3s ease; }
.social-link:hover { opacity: 0.8; }
.social-icon { display: block; width: 100%; height: 100%; }
.social-icon .icon-bg { fill: var(--Sky); }
.social-icon .icon-fg { fill: var(--Blue); }
.footer-fineprint { display: flex; gap: 7.15rem; }
.footer-copy, .footer-credit { margin: 0; color: var(--Sky); font-size: 0.55rem; line-height: 1.4; }
.footer-credit a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: left bottom; background-size: 0% 1px; transition: background-size 0.3s ease; }
.footer-credit a:hover { background-size: 100% 1px; }

/* וריאנט ורוד של הפוטר (עמוד פרויקטים) - ניגודיות הפוכה לוריאנט הכחול */
.site-footer--pink { background-color: var(--Pink); }
.site-footer--pink .cta-pill { background-color: var(--Plum); color: var(--Pink); }
.site-footer--pink .footer-col a { color: var(--Plum); }
.site-footer--pink .footer-logo { background-color: var(--Plum); }
.site-footer--pink .footer-divider { background-color: rgba(125, 42, 82, 0.3); }
.site-footer--pink .footer-copy,
.site-footer--pink .footer-credit { color: var(--Plum); }
/* אייקוני הרשתות עכשיו inline SVG (לא <img>), עם קלאסים על העיגול והגליף בנפרד -
   כל theme קובע שני צבעים משלו במדויק, בלי קירוב filter. */
.site-footer--pink .icon-bg { fill: var(--Plum); }
.site-footer--pink .icon-fg { fill: var(--Pink); }

@media only screen and (max-width: 768px) { html { font-size: 16px; } }
@media only screen and (min-width: 1700px) { html { font-size: 23.61px; } }
@media only screen and (min-width: 1919px) { html { font-size: 26.66px; } }
@media only screen and (min-width: 2559px) { html { font-size: 35.55px; } }
@media only screen and (min-width: 5119px) { html { font-size: 71.11px; } }

/* ==========================================================================
   עמוד פרויקטים (Works)
   ========================================================================== */
.works-wrapper { min-height: 100vh; padding-top: 5.5rem; padding-bottom: 1.5rem; overflow: hidden; }

/* אזור הסליידר + החצים - ⚠️ ממוקד ל-#works-splide בלבד: כללי .splide גלובליים דלפו
   לסליידרים של עמוד הפרויקט הבודד וקבעו שם רוחב 16.43rem + overflow visible */
.works-slider-zone { position: relative; display: flex; align-items: center; justify-content: center; }
#works-splide.splide { width: 16.43rem; max-width: 100%; }
#works-splide .splide__track { overflow: visible !important; }

.work-card { position: relative; display: block; width: 16.43rem; height: 30.5rem; border-radius: 1.6rem; overflow: hidden; background-color: #D9D9D9; box-shadow: 0 1rem 2rem rgba(0,0,0,0.18); transition: filter 0.5s ease, transform 0.5s ease; }
.work-card-media { position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
.work-card-badge { position: absolute; top: 0.8rem; right: 0.8rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden; box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.25); background: #fff; }
.work-card-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card-caption { position: absolute; right: 1.6rem; bottom: 1.6rem; left: 1.6rem; text-align: right; color: #fff; text-shadow: 0 0.1rem 0.5rem rgba(0,0,0,0.35); }
.work-card-title { margin: 0 0 0.2rem 0; font-family: 'gloria'; font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.work-card-client { margin: 0; font-size: 0.72rem; font-weight: 400; opacity: 0.92; }

/* שקפים לא-פעילים: קטנים יותר ומטושטשים - מדמה בדיוק את המראה שהתבקש */
.splide__slide { transition: opacity 0.5s ease; }
.splide__slide:not(.is-active) .work-card { filter: blur(8.55px); transform: scale(0.82); }
.splide__slide:not(.is-active) .work-card-caption,
.splide__slide:not(.is-active) .work-card-badge { opacity: 0; }

/* אזורי ריחוף לחצים - מכסים את השוליים משני צידי הכרטיס הפעיל */
.works-hover-zone { position: absolute; top: 0; bottom: 0; width: 22rem; display: flex; align-items: center; z-index: 5; }
.works-hover-zone--prev { right: calc(50% + 8.215rem); justify-content: flex-start; padding-right: 1.5rem; }
.works-hover-zone--next { left: calc(50% + 8.215rem); justify-content: flex-end; padding-left: 1.5rem; }

.works-arrow { width: 5.7rem; height: 5.7rem; border-radius: 50%; border: none; background-color: var(--Plum); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: scale(0.85); transition: opacity 0.3s ease, transform 0.3s ease, background-color var(--TransitionSpeed) ease; }
.works-hover-zone:hover .works-arrow { opacity: 1; transform: scale(1); }
.works-arrow img { width: 2.7rem; height: 2.7rem; display: block; }
.works-arrow--next img { transform: scaleX(-1); }

/* בקרות תחתונות: בר התקדמות + כפתור "צפו בכל הפרויקטים" */
.works-controls { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; max-width: 65rem; margin: 7.6rem auto 0; padding: 0 2rem; }
.works-progress-track { width: 14.2rem; height: 0.15rem; background-color: rgba(125,42,82,0.25); border-radius: 1rem; overflow: hidden; }
.works-progress-fill { width: 0%; height: 100%; background-color: var(--Plum); border-radius: 1rem; }
.works-progress-fill.is-animating { transition: width linear; }

.works-viewall-btn { padding: 0.85rem 1.6rem; border-radius: 3rem; border: 1px solid rgba(125,42,82,0.3); background: transparent; color: var(--Plum); font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease; }
.works-viewall-btn:hover { background-color: var(--Plum); color: var(--Pink); }

/* תצוגת גריד לכל הפרויקטים */
.works-grid-section { padding: 3rem 4.5rem 0; }
.works-grid-section[hidden] { display: none; }
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.9rem; }
.work-grid-card { display: block; text-decoration: none; color: inherit; }
.work-grid-thumb { position: relative; width: 100%; aspect-ratio: 277.5 / 515; border-radius: 1.6rem; background-color: #D9D9D9; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; overflow: hidden; margin-bottom: 0.9rem; transition: transform 0.35s ease; }
.work-grid-card:hover .work-grid-thumb { transform: translateY(-0.4rem); }
.work-grid-thumb .work-card-badge { width: 2.8rem; height: 2.8rem; top: 0.9rem; right: 0.9rem; }
.work-grid-title { margin: 0 0 0.2rem 0; font-family: 'gloria'; font-size: 1.15rem; font-weight: 700; color: var(--Plum); text-align: right; }
.work-grid-client { margin: 0; font-size: 0.9rem; color: var(--Plum); opacity: 0.7; text-align: right; }

@media only screen and (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .works-hover-zone { display: none; }
}

/* ==========================================================================
   עמוד פרויקט בודד (Single Project)
   ⚠️ שלב חיתוך בלבד - המידות מקורבות ולא מכוילות פיקסל-פרפקט מול פיגמה עדיין,
   בדומה למה שסומן ב-TODO בקובץ ה-PHP. יש לכייל מחדש כשיתקבלו מדידות מדויקות.
   ========================================================================== */
.project-wrapper { position: relative; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.project-mobile-logo, .project-mobile-label, .project-expand-icon, .project-collapse-icon { display: none; }

/* X לחזרה לעמוד הפרויקטים - פינה ימנית עליונה */
.project-close { position: absolute; top: 10.6vh; right: 2.8vw; z-index: 20; width: 1.25rem; height: 1.25rem; display: flex; align-items: center; justify-content: center; opacity: 0.85; transition: opacity 0.3s ease, transform 0.3s ease; }
.project-close img { width: 100%; height: 100%; display: block; }
.project-close:hover { opacity: 1; transform: rotate(90deg); }

/* ריווח לפי העיצוב (מדוד מהפריים 2330px): טקסט צמוד לימין ב-5.4vw, עמודת התמונות מתחילה ב-3.8vw,
   ומרכז התוכן ב-~50vh (padding-top 4.5vh מאזן את גובה הטיקר שבתחתית) */
.project-hero { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: space-between; padding: 4.5vh 5.4vw 0 3.8vw; gap: 3rem; }

/* עמודת הסליידר - צד שמאל. הקצה הימני של התמונה הפעילה ב-~33vw (3.8vw padding + 29vw).
   ללא position:relative בכוונה - כדי שהחצים (absolute) ימוקמו ביחס ל-project-wrapper, כמו ה-X */
.project-slider-col { flex: 0 0 21vw; max-width: 40%; display: flex; flex-direction: column; }

/* חצי דפדוף - בעיצוב הם מקובעים בפינה השמאלית העליונה של העמוד, באותו גובה של ה-X (לא מעל התמונה) */
.project-slider-nav { position: absolute; top: 10.6vh; left: 4.1vw; z-index: 20; display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.project-nav-arrow { width: 1.1rem; height: 1.1rem; display: flex; align-items: center; justify-content: center; padding: 0; border: none; background: transparent; cursor: pointer; opacity: 0.85; transition: opacity 0.3s ease, transform 0.3s ease; }
.project-nav-arrow img { width: 100%; height: 100%; display: block; }
.project-nav-arrow--prev img { transform: scaleX(-1); }
.project-nav-arrow:hover { opacity: 1; transform: scale(1.1); }

/* מסגרת הסליידר - אותה טכניקה בדיוק כמו בעמוד הפרויקטים: ה-.splide ברוחב תמונה אחת,
   ה-track ב-overflow visible כך שהתמונה הבאה (ב-RTL היא משמאל) מבצבצת ונחתכת בקצה
   המסך ע"י project-wrapper. המסגרת "נמתחת" 100vw שמאלה (margin שלילי + padding זהה)
   כך ש-overflow:hidden חותך רק את הצד הימני (השקפים ה"קודמים") ומשאיר את השמאל
   פתוח עד קצה המסך. */
.project-slider-frame { overflow: hidden; margin-left: -100vw; padding-left: 100vw; }
/* רוחב תמונה: 20.6vw בעיצוב, מוגבל גם לפי גובה (30.9vh) כדי לשמור על יחס 8:15 בלי לחרוג מהמסך */
#project-splide.splide { width: min(20.6vw, 30.9vh); max-width: 100%; }
#project-splide .splide__track { overflow: visible !important; }
.project-slide-btn { display: block; width: 100%; padding: 0; border: none; background: transparent; cursor: pointer; }
.project-slide-media { display: block; width: 100%; aspect-ratio: 8 / 15; border-radius: 1.8rem; background-color: #D9D9D9; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }

/* עמודת התוכן - צד ימין */
/* עמודת התוכן - מידות ישירות מהעיצוב (פריים 1165px = ~1rem ל-20px): כותרת 57px, טקסט 15px,
   שורה 25px, רוחב 542px. הריווח האנכי צומצם כדי שהכל ייכנס בגובה מסך של 16:9 */
.project-info-col { flex: 1 1 auto; max-width: 33rem; text-align: right; }
.project-client { margin: 0 0 0.75rem 0; font-size: 0.75rem; color: var(--Plum); opacity: 0.85; }
/* הכותרת בעיצוב בגזרה הצרה של Caravan (ראה הערה ב-.section-title) - מדמים עם scaleX עד שיגיע הפונט */
.project-title { margin: 0 0 0.7rem 0; font-family: 'caravan'; font-weight: 900; font-size: 2.85rem; line-height: 1; color: var(--Plum); transform: scaleX(0.74); transform-origin: right center; }
.project-roles { margin: 0 0 1.5rem 0; font-size: 0.9rem; color: var(--Plum); opacity: 0.85; }
/* טקסט רץ 20px; 7 שורות גלויות (7 × 1.5 × 1rem), מעבר לזה - גלילה פנימית. data-lenis-prevent ב-PHP
   מונע מ-Lenis "לבלוע" את גלגלת העכבר מעל האלמנט */
.project-description { margin: 0 0 2rem 0; padding-left: 0.6rem; max-height: 10.5rem; overflow-y: auto; font-size: 1rem; line-height: 1.5; color: var(--Plum); scrollbar-width: thin; scrollbar-color: rgba(125,42,82,0.35) transparent; }
.project-social-label { margin: 0 0 0.5rem 0; font-size: 0.8rem; color: var(--Plum); opacity: 0.85; }
.project-social { display: flex; direction: ltr; justify-content: flex-end; gap: 0.5rem; }
.project-info-col .social-link { width: 2rem; height: 2rem; }
.project-info-col .icon-bg { fill: var(--Plum); }
.project-info-col .icon-fg { fill: var(--Pink); }

/* פס תחתון מלא-רוחב - דבוק לתחתית המסך (child אחרון של ה-flex column, גובהו auto) */
.project-next-bar { display: block; flex-shrink: 0; width: 100%; overflow: hidden; background-color: var(--Sky); text-decoration: none; padding: 0.4vw 0; }
/* track יחיד (RTL: הפריט הראשון צמוד לקצה הימני). ההזזה ימינה ב---ticker-period (= רוחב פריט + gap,
   נמדד ב-JS) - כל הפריטים זהים, ולכן אחרי מחזור אחד התמונה זהה לחלוטין והלולאה נסגרת בלי "חור".
   --ticker-duration מחושב ב-JS כך שהמהירות קבועה בלי תלות בגודל הפונט. */
.project-next-marquee { display: flex; width: max-content; animation: projectNextScroll var(--ticker-duration, 14s) linear infinite; }
.project-next-track { display: flex; flex-shrink: 0; gap: 1.5rem; }
/* גודל כמו הכותרת (57px). הטקסט בהיר כברירת מחדל; הפריט שמתחת לעכבר מקבל .is-hot מ-JS (ראה scripts.js #8)
   ולא דרך :hover - כי הפריטים נעים באנימציה מתחת לעכבר סטטי והדפדפן לא מעדכן :hover בלי תזוזת עכבר.
   בלי transition בכוונה: מעבר מיידי, כדי שלא ייראו שני פריטים כהים בזמן הדהייה */
.project-next-item { display: inline-block; white-space: nowrap; font-family: 'caravan'; font-weight: 900; font-size: 2.85rem; line-height: 1; color: var(--Blue); opacity: 0.45; transition: 0.3s opacity ease-in-out;}
.project-next-item.is-hot { opacity: 1; }
@keyframes projectNextScroll { from { transform: translateX(0); } to { transform: translateX(var(--ticker-period, 0px)); } }

@media only screen and (max-width: 900px) {
  .project-hero { flex-direction: column; padding-top: 5.5rem; overflow-y: auto; }
  .project-slider-col { max-width: 100%; flex: 0 0 auto; }
  .project-info-col { max-width: 100%; }
  .project-title { font-size: 2.4rem; }
}

/* ==========================================================================
   פופאפ תמונה מוגדלת (Lightbox) - מתחלף אוטומטית, בדומה לסליידר בעמוד הפרויקטים
   הרקע: backdrop blur של העמוד שמאחור + גוון ורוד - בלי תמונת רקע נפרדת.
   ========================================================================== */
.project-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: rgba(255, 193, 223, 0.55); backdrop-filter: blur(1.4rem); -webkit-backdrop-filter: blur(1.4rem); }
.project-lightbox[hidden] { display: none; }
.project-lightbox-close { position: absolute; top: 1.8rem; right: 2.4rem; z-index: 2; width: 1.4rem; height: 1.4rem; display: flex; align-items: center; justify-content: center; padding: 0; border: none; background: transparent; cursor: pointer; opacity: 0.9; transition: opacity 0.3s ease, transform 0.3s ease; }
.project-lightbox-close img { width: 100%; height: 100%; display: block; }
.project-lightbox-close:hover { opacity: 1; transform: rotate(90deg); }
/* רוחב ב-vh כדי לשמור על פרופורציית פורטרט של התמונה (11/20) בכל גובה מסך */
.project-lightbox-inner { position: relative; z-index: 1; width: 44vh; max-width: 85vw; }
/* אותו מנגנון בדיוק כמו #works-splide: ה-.splide ברוחב שקף אחד, ה-track ב-overflow visible,
   השכנים נראים בצדדים מטושטשים ומוקטנים, וה-lightbox (fixed, overflow hidden) חותך בקצה המסך */
#project-lightbox-splide.splide { width: 100%; }
#project-lightbox-splide .splide__track { overflow: visible !important; }
.project-lightbox-media { width: 100%; aspect-ratio: 11 / 20; max-height: 80vh; border-radius: 1.8rem; background-color: #D9D9D9; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; transition: filter 0.5s ease, transform 0.5s ease; }
#project-lightbox-splide .splide__slide:not(.is-active) .project-lightbox-media { filter: blur(8.55px); transform: scale(0.82); }
/* בר ההתקדמות מונח מעל התמונה, בתחתיתה */
.project-lightbox-progress-track { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; z-index: 2; height: 0.15rem; background-color: rgba(255,255,255,0.35); border-radius: 1rem; overflow: hidden; }
.project-lightbox-progress-fill { width: 0%; height: 100%; background-color: #fff; border-radius: 1rem; }


/* ==========================================================================
   עמוד טקסט (Text Page) - מדיניות פרטיות, נגישות וכו'. התוכן מגיע מעורך וורדפרס (the_content)
   מידות ישירות מעיצוב 1440px: עמודה 586px, טקסט 20px וכותרות משנה 23px.
   ========================================================================== */
.uchtti-text-page { --Sky: #ADD6FF; }
.text-wrapper { background-color: var(--Sky); padding: 12.75rem 1.5rem 11rem; }
.text-container { width: 29.3rem; max-width: 100%; margin: 0 auto; text-align: right; color: var(--Blue); }
/* כותרת ראשית בגזרה הצרה של Caravan - אותה סימולציה כמו .section-title */
.text-title { margin: 0 0 2rem 0; font-family: 'caravan'; font-weight: 900; font-size: 2.75rem; line-height: 1.05; color: var(--Blue); transform: scaleX(var(--TitleNarrow)); transform-origin: right center; }
.text-content { font-size: 1rem; line-height: 1.45; }
.text-content p { margin: 0 0 1.1rem 0; }
.text-content h2, .text-content h3 { margin: 1.4rem 0 0.8rem 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--Blue); }
.text-content ul, .text-content ol { margin: 0 0 1.1rem 0; padding-right: 1.1rem; }
.text-content ul { list-style: disc; }
.text-content ol { list-style: decimal; }
.text-content li { margin: 0 0 0.15rem 0; }
.text-content a { text-decoration: underline; text-underline-offset: 0.15em; }
.text-content strong { font-weight: 700; }
.text-content > :last-child { margin-bottom: 0; }

/* וריאנט הפוטר של עמודי הטקסט: רקע תכלת וכפתור כחול כהה. */
.uchtti-text-page .site-footer { padding-right: 3.6rem; padding-left: 3.6rem; background-color: var(--Sky); }
.uchtti-text-page .cta-pill { color: var(--Sky); background-color: var(--Blue); }
.uchtti-text-page .footer-col a { color: var(--Blue); }
.uchtti-text-page .footer-logo { background-color: var(--Blue); }
.uchtti-text-page .footer-divider { background-color: rgba(0, 70, 140, 0.45); }
.uchtti-text-page .footer-copy, .uchtti-text-page .footer-credit { color: var(--Blue); }
.uchtti-text-page .icon-bg { fill: var(--Blue); }
.uchtti-text-page .icon-fg { fill: var(--Sky); }

@media only screen and (max-width: 768px) {
  .text-wrapper { padding: 8rem 1.5rem 6rem; }
  .text-title { font-size: 2.75rem; }
  .text-content { font-size: 1rem; }
  .uchtti-text-page .site-footer { padding-right: 1.5rem; padding-left: 1.5rem; }
}

/* ==========================================================================
   עמוד יצירת קשר — פריים 1440×1768, בסיס 20px. חיתוך סטטי לפני חיבור CF7.
   ========================================================================== */
html:has(> body.uchtti-contact-page) { font-size: calc(100vw / 72); }
.uchtti-contact-page { --Sky: #ADD6FF; color: var(--Blue); background-color: var(--Sky); }
.uchtti-contact-page .site-header { padding: 1.75rem 3.2rem 0 3.8rem; }
.uchtti-contact-page .logo-link { margin-top: 1rem; }
.uchtti-contact-page .main-nav { height: 2.7rem; }
.uchtti-contact-page .nav-link { padding-right: 1.075rem; padding-left: 1.075rem; }
.contact-page { overflow: hidden; background-color: var(--Sky); }
.contact-layout { display: grid; grid-template-columns: 31rem minmax(0, 1fr); column-gap: 3rem; align-items: start; padding: 9.75rem 3.65rem 0 5.35rem; direction: ltr; }
.contact-intro { grid-column: 2; grid-row: 1; width: 22.4rem; justify-self: end; min-width: 0; direction: rtl; text-align: right; }
/* Existing Caravan 210: per-line width correction to the supplied 385 / 440 / 171px lettering. */
.contact-title { display: flex; flex-direction: column; align-items: flex-end; direction: ltr; margin: 0; font-family: 'caravan'; font-size: 3.2rem; font-weight: 900; line-height: 2.75rem; color: var(--Blue); }
.contact-title > span { display: block; flex: 0 0 auto; width: max-content; white-space: nowrap; direction: rtl; transform: scaleX(0.812); transform-origin: right center; }
.contact-title > span:nth-child(2) { transform: scaleX(0.768); }
.contact-title > span:nth-child(3) { transform: scaleX(0.814); }
.contact-intro-copy { margin: 0.75rem 0 0; font-size: 1.15rem; font-weight: 400; line-height: 1.45rem; }
.contact-collage { position: relative; width: 16rem; height: 12rem; margin-top: 5.75rem; margin-right: 6.45rem; direction: ltr; pointer-events: none; }
.contact-collage-img { position: absolute; display: block; object-fit: cover; border-radius: 0.7rem; }
.contact-collage-img--1 { left: 0.5rem; top: 6rem; width: 6.3rem; height: 5.7rem; border-radius: 1.4rem; transform: rotate(-18deg); }
.contact-collage-img--2 { left: 3.6rem; top: 2.65rem; width: 5rem; height: 5.1rem; transform: rotate(8deg); }
.contact-collage-img--3 { left: 7.7rem; top: 0.6rem; width: 4.75rem; height: 4.85rem; transform: rotate(11deg); }
.contact-collage-img--4 { left: 12rem; top: 0.15rem; width: 3.75rem; height: 3.6rem; transform: rotate(23deg); }
.contact-form-shell { grid-column: 1; grid-row: 1; width: 31rem; min-width: 0; margin-top: 5.75rem; direction: rtl; }
.contact-form-shell form, .contact-form-shell .wpcf7 { margin: 0; }
.contact-form-shell .wpcf7-form > p { margin: 0; }
.contact-form-layout { position: relative; width: 100%; isolation: isolate; }
.contact-envelope-back { position: absolute; right: 0; bottom: 0; left: 0; z-index: 0; display: block; width: 31rem; height: 17.3rem; object-fit: contain; pointer-events: none; }
span.contact-envelope-back { background: url('assets/img/env_back.png') center / contain no-repeat; }
.contact-letter-paper { position: relative; z-index: 1; width: 28rem; margin-left: 1.75rem; margin-right: auto; padding: 3.35rem 1.95rem 6.6rem 1.7rem; border: 0.15rem solid var(--Blue); background-color: var(--Sky); }
.contact-form-title { width: max-content; margin: 0 0 0 auto; font-family: 'caravan'; font-size: 1.8rem; font-weight: 900; line-height: 1.8rem; white-space: nowrap; transform: scaleX(0.79); transform-origin: right center; }
.contact-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 1.6rem; margin-top: 1.75rem; }
.contact-field { display: block; min-width: 0; margin: 0; }
.contact-field .wpcf7-form-control-wrap { display: block; }
.contact-input { display: block; width: 100%; min-width: 0; height: 2.2rem; margin: 0; padding: 0.45rem 0 0.35rem; border: 0; border-bottom: 0.15rem solid var(--Blue); border-radius: 0; background: transparent; color: var(--Blue); font-family: 'ploni'; font-size: 0.8rem; font-weight: 400; line-height: 1.2rem; text-align: right; box-shadow: none; appearance: none; -webkit-appearance: none; }
.contact-input::placeholder { color: var(--Blue); opacity: 0.85; }
.contact-input:focus-visible { box-shadow: 0 0.1rem 0 var(--Blue); }
.contact-project-field { margin-top: 2.5rem; }
.contact-project-field textarea { height: 2.5rem; padding-top: 0.75rem; resize: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.contact-upload { position: relative; width: 17.75rem; max-width: 100%; margin: 3.5rem auto 0; transform: translateX(0.4rem); }
.contact-dropzone { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.75rem; padding: 0.6rem 0.75rem; border: 0.1rem dashed var(--Blue); border-radius: 1rem; font-size: 0.9rem; font-weight: 400; line-height: 1.3; color: rgba(0, 70, 140, 0.55); cursor: pointer; transition: background-color 0.2s ease; }
.contact-upload-icon { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; background: url('assets/img/staple.svg') center / contain no-repeat; }
.contact-file-picker { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.contact-dropzone:focus-within, .contact-upload.is-dragging .contact-dropzone { background-color: rgba(0, 70, 140, 0.09); box-shadow: 0 0 0 0.1rem var(--Blue); }
.contact-file-slots > br { display: none; }
.contact-file-slots input[type='file'], .contact-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.contact-file-list { margin: 0.6rem 0 0; padding: 0; list-style: none; font-size: 0.75rem; line-height: 1.35; }
.contact-file-list li { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(0, 70, 140, 0.25); }
.contact-file-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.contact-file-remove { flex: 0 0 auto; padding: 0.25rem; border: 0; background: transparent; color: var(--Blue); font: inherit; text-decoration: underline; cursor: pointer; }
.contact-upload-status { margin: 0.5rem 0 0; font-size: 0.75rem; line-height: 1.4; }
.contact-upload-status.is-error { color: var(--Plum); }
.contact-upload [hidden] { display: none; }
.contact-referral-field { margin-top: 3.55rem; }
.contact-consent { margin-top: 3.95rem; font-size: 0.9rem; line-height: 1.3rem; }
.contact-consent .wpcf7-form-control-wrap, .contact-consent .wpcf7-acceptance, .contact-consent .wpcf7-list-item { display: block; margin: 0; }
.contact-consent label { display: flex; align-items: center; justify-content: center; gap: 0.6rem; cursor: pointer; }
.contact-consent input[type='checkbox'] { flex: 0 0 auto; width: 1.3rem; height: 1.3rem; margin: 0; border: 0.1rem solid var(--Blue); border-radius: 0.3rem; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.contact-consent input[type='checkbox']:checked { background-color: var(--Blue); box-shadow: inset 0 0 0 0.25rem var(--Sky); }
.contact-consent input[type='checkbox']:focus-visible, .contact-file-remove:focus-visible, .contact-submit:focus-visible { outline: 0.1rem solid var(--Blue) !important; outline-offset: 0.2rem; }
.contact-envelope { position: relative; z-index: 2; width: 31rem; height: 17.3rem; margin-top: -6.8rem; }
.contact-envelope-front { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
span.contact-envelope-front { background: url('assets/img/env_front.png') center / contain no-repeat; }
.contact-envelope-badge { position: absolute; top: 4.05rem; right: -3.1rem; display: block; width: 6.6rem; height: 6.6rem; object-fit: contain; pointer-events: none; }
span.contact-envelope-badge { background: url('assets/img/banner-uchtti.svg') center / contain no-repeat; }
.contact-submit-wrap { position: absolute; top: 9.65rem; left: 50%; width: 15.8rem; transform: translateX(-50%); }
.contact-submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 3.1rem; margin: 0; padding: 0 0.5rem; border: 0; border-radius: 2rem; background-color: var(--Blue); color: var(--Sky); font-family: 'caravan'; font-size: 1.4rem; font-weight: 900; line-height: 1; text-align: center; cursor: pointer; appearance: none; -webkit-appearance: none; }
.contact-submit-label { display: block; flex: 0 0 auto; white-space: nowrap; transform: scaleX(0.64); }
.contact-submit[aria-disabled='true'] { cursor: default; }
.contact-form-shell .wpcf7-not-valid-tip { display: block; margin-top: 0.35rem; color: var(--Plum); font-size: 0.7rem; line-height: 1.35; }
.contact-form-shell .wpcf7-response-output { margin: 1rem 0 0; padding: 0.65rem; font-size: 0.85rem; line-height: 1.4; }
.contact-form-shell .wpcf7-spinner { position: absolute; top: 100%; left: 50%; margin: 0.4rem 0 0; transform: translateX(-50%); }
.contact-form-shell .wpcf7-form-control-wrap > br, .contact-form-shell .contact-field > br, .contact-consent br { display: none; }

/* Contact footer reuses the existing links, logo and social SVGs, without the CTA. */
.uchtti-contact-page .site-footer { padding: 2.65rem 2.75rem 3.25rem 4.75rem; background-color: var(--Sky); }
.uchtti-contact-page .footer-main { margin-top: 0; }
.uchtti-contact-page .footer-links { direction: ltr; }
.uchtti-contact-page .footer-col a { color: var(--Blue); }
.uchtti-contact-page .footer-logo-link { margin-top: 1.2rem; }
.uchtti-contact-page .footer-logo { background-color: var(--Blue); }
.uchtti-contact-page .footer-divider { margin-top: 1.8rem; background-color: rgba(0, 70, 140, 0.45); }
.uchtti-contact-page .footer-bottom { margin-top: 1.6rem; }
.uchtti-contact-page .footer-copy, .uchtti-contact-page .footer-credit { color: var(--Blue); }
.uchtti-contact-page .icon-bg { fill: var(--Blue); }
.uchtti-contact-page .icon-fg { fill: var(--Sky); }

/* Temporary mobile arrangement; no mobile Figma frame was supplied. */
@media only screen and (max-width: 900px) {
  html:has(> body.uchtti-contact-page) { font-size: 16px; }
  .uchtti-contact-page .site-header { padding: 1.25rem 1.25rem 0; }
  .uchtti-contact-page .header-logo { width: 8rem; height: 1.2rem; }
  .uchtti-contact-page .logo-link { margin-top: 0.65rem; }
  .uchtti-contact-page .main-nav { height: 2.5rem; padding-right: 0.25rem; padding-left: 0.25rem; }
  .uchtti-contact-page .nav-link { padding: 0.55rem 0.65rem; font-size: 0.85rem; }
  .uchtti-contact-page .nav-bubble { top: 0.35rem; }
  .contact-layout { display: flex; flex-direction: column; gap: 2.5rem; padding: 7rem 1.25rem 0; }
  .contact-intro { align-self: center; width: min(28rem, 100%); }
  .contact-title { font-size: clamp(2.3rem, 6.4vw, 3.2rem); line-height: 0.86; }
  .contact-intro-copy { margin-top: 1.5rem; font-size: 1.1rem; line-height: 1.45; }
  .contact-desktop-break { display: none; }
  .contact-collage { margin: 2rem auto 0; }
  .contact-form-shell { align-self: center; width: min(31rem, calc(100% - 1rem)); margin: 0; }
  .contact-letter-paper { width: calc(100% - 2rem); margin-left: 1rem; padding: 2rem 1rem 5rem; border-width: 2px; }
  .contact-form-title { font-size: clamp(1.15rem, 4vw, 1.8rem); line-height: 1.2; }
  .contact-fields-grid { column-gap: 1rem; row-gap: 1.3rem; }
  .contact-input { height: 2.75rem; font-size: 1rem; line-height: 1.4rem; }
  .contact-project-field { margin-top: 1.5rem; }
  .contact-project-field textarea { height: 4rem; padding-top: 0.5rem; }
  .contact-upload { width: 100%; margin-top: 2rem; transform: none; }
  .contact-dropzone { padding: 0.75rem 0.5rem; font-size: 0.85rem; }
  .contact-referral-field { margin-top: 2rem; }
  .contact-consent { margin-top: 2rem; font-size: 0.85rem; }
  .contact-envelope-back { width: 100%; height: auto; aspect-ratio: 620 / 346; }
  .contact-envelope { width: 100%; height: auto; aspect-ratio: 620 / 346; margin-top: -4.4rem; }
  .contact-envelope-badge { top: 23.4%; right: -5%; width: 21.3%; height: auto; aspect-ratio: 1; }
  .contact-submit-wrap { top: 55.2%; width: 51%; }
  .contact-submit { height: 2.6rem; font-size: clamp(0.82rem, 3vw, 1.3rem); }
  .uchtti-contact-page .site-footer { padding: 3rem 1.25rem; }
  .uchtti-contact-page .footer-main { flex-wrap: wrap; gap: 2rem; }
  .uchtti-contact-page .footer-links { gap: 2rem; }
  .uchtti-contact-page .footer-col a { font-size: 0.95rem; }
  .uchtti-contact-page .footer-logo-link { margin-top: 0; }
  .uchtti-contact-page .footer-bottom { flex-wrap: wrap; gap: 1.5rem; }
  .uchtti-contact-page .footer-fineprint { flex-wrap: wrap; gap: 0.75rem; }
}
@media only screen and (max-width: 520px) {
  .uchtti-contact-page .header-inner { flex-direction: column-reverse; align-items: center; gap: 0.85rem; }
  .uchtti-contact-page .logo-link { margin-top: 0; }
  .contact-layout { padding-top: 8rem; }
  .contact-fields-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0.8rem; }
  .contact-intro { width: 100%; }
  .contact-consent label { align-items: flex-start; }
}

/* ==========================================================================
   404 — 1440×1849 reference; the static background includes the headline.
   The home button starts at y=539px (26.95rem) at the 1440px reference width.
   ========================================================================== */
html:has(> body.error404) { font-size: calc(100vw / 72); }
.error404 { background-color: var(--Pink); }
.error404 .site-header { padding-top: 1.75rem; padding-right: 3.2rem; }
.error404 .logo-link { margin-top: 1rem; }
.error404 .main-nav { height: 2.7rem; }
.error404 .nav-link { padding-right: 1.075rem; padding-left: 1.075rem; }
.error404 .site-header[data-theme="plum"] .main-nav { --nav-ink: var(--Plum); background-color: #DAB6D0; }
.error404-hero { position: relative; isolation: isolate; min-height: 44.2rem; padding: 26.95rem 2rem 4rem; overflow: hidden; background: var(--Plum) url('assets/img/error_404_bg.png') center / cover no-repeat; color: var(--Pink); }
.error404-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; }
.error404-title { margin: 0; font-family: 'caravan'; font-size: 4.45rem; font-weight: 900; line-height: 3.65rem; }
.error404-title-line { display: block; white-space: nowrap; }
.error404-home-link { display: flex; align-items: center; justify-content: center; width: 23.2rem; max-width: 100%; min-height: 4.55rem; margin-top: 0; padding: 0.5rem 1rem; border-radius: 3rem; background-color: var(--Pink); color: var(--Plum); font-family: 'caravan'; font-size: 2.3rem; font-weight: 900; line-height: 1; text-decoration: none; }
.error404-home-link:hover { background-color: #FFE0EF; }
.error404-home-link:focus-visible { outline: 0.15rem solid var(--Pink) !important; outline-offset: 0.3rem; }
.error404-markers { position: absolute; inset: 0; z-index: 0; pointer-events: none; user-select: none; }
.error404-marker { position: absolute; display: block; font-family: 'caravan'; font-size: 1.55rem; font-weight: 900; line-height: 1; direction: ltr; }
.error404-marker--1 { top: 12rem; left: 9.2rem; }
.error404-marker--2 { top: 6.25rem; left: 43.85rem; }
.error404-marker--3 { right: 9.5rem; bottom: 8.55rem; }
.error404-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Reuse the footer markup and existing gallery assets; only 404 spacing changes. */
.error404 .site-footer { padding-bottom: 3.25rem; }
.error404 .footer-cta { padding-top: 12.7rem; }
.error404 .cta-pill { margin-right: -0.1rem; margin-left: -0.325rem; }
.error404 .footer-links { direction: ltr; }
.error404 .cta-collage { top: 4.8rem; right: auto; left: 14.6rem; width: 16rem; height: 12rem; }
.error404 .cta-collage-img { border-radius: 0.7rem; }
.error404 .cta-collage-img--1 { left: 0.5rem; top: 6rem; width: 6.3rem; height: 5.7rem; border-radius: 1.4rem; transform: rotate(-18deg); }
.error404 .cta-collage-img--2 { left: 3.6rem; top: 2.65rem; width: 5rem; height: 5.1rem; transform: rotate(8deg); }
.error404 .cta-collage-img--3 { left: 7.7rem; top: 0.6rem; width: 4.75rem; height: 4.85rem; transform: rotate(11deg); }
.error404 .cta-collage-img--4 { left: 12rem; top: 0.15rem; width: 3.75rem; height: 3.6rem; transform: rotate(23deg); }

/* Temporary responsive layout until a mobile design is supplied. */
@media only screen and (max-width: 900px) {
  html:has(> body.error404) { font-size: 16px; }
  .error404 .site-header { padding: 1.25rem 1.25rem 0; }
  .error404 .header-logo { width: 8rem; height: 1.2rem; }
  .error404 .logo-link { margin-top: 0.65rem; }
  .error404 .main-nav { height: 2.5rem; padding-right: 0.25rem; padding-left: 0.25rem; }
  .error404 .nav-link { padding: 0.55rem 0.65rem; font-size: 0.85rem; }
  .error404 .nav-bubble { top: 0.35rem; }
  .error404-hero { min-height: 34rem; padding: 20.5rem 1.25rem 6rem; }
  .error404-title { font-size: clamp(1.5rem, 6.18vw, 4.45rem); line-height: 0.95; }
  .error404-home-link { width: min(23.2rem, 85%); min-height: 3.5rem; font-size: clamp(1.25rem, 3.2vw, 2.3rem); }
  .error404-marker { font-size: 1.15rem; }
  .error404-marker--1 { top: 8rem; left: 8%; }
  .error404-marker--2 { top: 7rem; left: auto; right: 15%; }
  .error404-marker--3 { right: 8%; bottom: 3rem; }
  .error404 .site-footer { padding: 0 1.25rem 3rem; }
  .error404 .footer-cta { padding-top: 11rem; }
  .error404 .cta-pill { height: clamp(4.5rem, 12.7vw, 9.14rem); margin: 0; padding: 0 0.75rem; font-size: clamp(1.35rem, 6.33vw, 4.56rem); white-space: nowrap; }
  .error404 .cta-collage { top: 2rem; left: 50%; transform: translateX(-50%) scale(0.85); transform-origin: top center; }
  .error404 .footer-main { flex-wrap: wrap; gap: 2rem; margin-top: 5rem; }
  .error404 .footer-links { gap: 2rem; }
  .error404 .footer-col a { font-size: 0.95rem; }
  .error404 .footer-logo-link { margin-top: 0; }
  .error404 .footer-bottom { flex-wrap: wrap; gap: 1.5rem; }
  .error404 .footer-fineprint { flex-wrap: wrap; gap: 0.75rem; }
}
@media only screen and (max-width: 520px) {
  .error404 .header-inner { flex-direction: column-reverse; align-items: center; gap: 0.85rem; }
  .error404 .logo-link { margin-top: 0; }
}

/* About mobile — measured proportionally from the supplied 160px export,
   using the same 402px source width as the mobile home design. */
@media only screen and (max-width: 768px) {
  html:has(> body.page-template-about) { font-size: calc(100vw / 25.125); }
  body.page-template-about { --Sky: #ADD6FF; --AboutSky: #A1DAF9; background-color: var(--Blue); }
  .page-template-about .about-desktop-only { display: none; }
  .page-template-about .about-mobile-only { display: inline; }
  .page-template-about .site-header { position: absolute; top: 0; padding: 5.34rem 0 0; }
  .page-template-about .header-inner { justify-content: center; }
  .page-template-about .logo-link { margin: 0; }
  .page-template-about .header-logo { width: 9.75rem; height: 1.381rem; }
  .page-template-about .site-header .main-nav { position: fixed; top: auto; right: auto; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: calc(100% - 2.5rem); height: 3.875rem; padding: 0.5rem; justify-content: space-between; border-radius: 3rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .page-template-about .site-header[data-theme] .main-nav { --nav-ink: var(--Plum); --nav-bubble-ink: var(--Pink); background: rgba(255, 255, 255, 0.88); }
  .page-template-about .site-header .nav-link { flex: 1 1 0; padding: 0.6rem 0.35rem; font-size: 0.9375rem; line-height: 1.375rem; text-align: center; }
  .page-template-about .site-header[data-theme] .nav-bubble { top: 0.5rem; bottom: auto; height: 2.875rem; background-color: var(--Plum); }
  .page-template-about .about-section[data-theme="pink"] { background-color: var(--Pink); }
  .page-template-about .about-section[data-theme="sky"] { background-color: var(--AboutSky); }
  .page-template-about .about-section[data-theme="blue"] { background-color: var(--Blue); }
  .page-template-about .hero-section { height: 54.65rem; }
  .page-template-about .hero-title { top: 13rem; right: 1.5rem; font-size: 5.625rem; line-height: 0.71; }
  .page-template-about .hero-plant { top: 25.75rem; left: -0.25rem; width: 8.5rem; }
  .page-template-about .hero-group { right: 0; left: auto; bottom: 0; width: 235%; max-width: none; }
  .page-template-about .hero-section .parallax-layer { transform: none !important; }
  .page-template-about .text-logos-section { padding: 4.375rem 1.25rem 4.5rem; }
  .page-template-about .intro-text { width: 100%; max-width: none; margin: 0; font-size: 1.75rem; line-height: 1.3; }
  .page-template-about .clients-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 5.25rem; }
  .page-template-about .client-logo-wrapper { width: 5rem; height: 5rem; margin: 0 auto; }
  .page-template-about .client-logo-wrapper:nth-child(n+4) { display: none; }
  .page-template-about .services-section { padding: 6rem 0 11.625rem; }
  .page-template-about .services-container { padding: 0 1.5rem; }
  .page-template-about .section-title { font-size: 2.5rem; line-height: 1; }
  .page-template-about .services-grid { grid-template-columns: minmax(0, 1fr); row-gap: 2.125rem; margin-top: 3rem; }
  .page-template-about .service-item { gap: 1.625rem; min-height: 3.125rem; font-size: 1.5rem; }
  .page-template-about .service-icon, .page-template-about .service-icon--creative, .page-template-about .service-icon--production { width: 3.125rem; height: 3.125rem; object-fit: contain; }
  .page-template-about .image-marquee-wrapper { --service-slide-width: calc(100vw - 3.125rem); margin-top: 7.25rem; direction: ltr; touch-action: pan-y pinch-zoom; }
  .page-template-about .image-marquee { gap: 0.75rem; direction: ltr; transform: translateX(1.5625rem); }
  .page-template-about .marquee-img { width: var(--service-slide-width); height: auto; aspect-ratio: 23.33 / 21.83; border-radius: 3rem; }
  .page-template-about .image-marquee-wrapper:focus-visible { outline: 2px solid var(--Plum) !important; outline-offset: -4px; }
  .page-template-about .team-section { padding: 6rem 1.25rem; }
  .page-template-about .team-container { padding: 0; }
  .page-template-about .team-title { margin: 0; }
  .page-template-about .team-subtitle { width: 100%; margin: 4rem 0 0; font-size: 1.75rem; line-height: 1.3; }
  .page-template-about .team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 3.5rem 0 0; direction: rtl; }
  .page-template-about .team-col { display: contents; }
  .page-template-about .team-col-offset { margin: 0; }
  .page-template-about .team-member { width: 100%; height: auto; aspect-ratio: 174 / 228; border-radius: 2.625rem; }
  .page-template-about .team-info-strip { display: flex; justify-content: center; right: 0.75rem; left: 0.75rem; bottom: 1.25rem; min-height: 2rem; height: auto; padding: 0.4rem 0.2rem; border-radius: 2rem; }
  .page-template-about .team-badge { display: none; }
  .page-template-about .team-name { width: 100%; padding: 0; font-size: 1rem; line-height: 1.2; text-align: center; }
  .page-template-about .team-member:focus-visible { outline: 2px solid var(--Sky) !important; outline-offset: 3px; }
  .page-template-about .site-footer { padding: 0 1.25rem calc(7.5rem + env(safe-area-inset-bottom, 0px)); }
  .page-template-about .footer-cta { padding-top: 7.5rem; }
  .page-template-about .cta-collage { display: none; }
  .page-template-about .cta-pill { height: 3.3rem; padding: 0 0.5rem; border-radius: 2rem; font-size: 1.8rem; white-space: nowrap; }
  .page-template-about .footer-main { flex-direction: column-reverse; align-items: center; margin-top: 3.75rem; }
  .page-template-about .footer-logo-link { margin: 0; }
  .page-template-about .footer-logo { width: 8.25rem; height: 1.17rem; }
  .page-template-about .footer-links { width: 100%; justify-content: space-between; gap: 1rem; margin-top: 4rem; direction: ltr; }
  .page-template-about .footer-col a { font-size: 0.875rem; line-height: 1.4; }
  .page-template-about .footer-divider { margin-top: 2.25rem; }
  .page-template-about .footer-bottom { flex-direction: column; gap: 3rem; margin-top: 2.25rem; }
  .page-template-about .footer-social { gap: 0.875rem; }
  .page-template-about .social-link { width: 3.625rem; height: 3.625rem; }
  .page-template-about .footer-fineprint { flex-direction: column-reverse; align-items: center; gap: 0; }
  .page-template-about .footer-copy, .page-template-about .footer-credit { font-size: 0.5625rem; line-height: 1.4; text-align: center; }
}

/* Single project mobile — 402px reference, 16px rem at the reference width. */
@media (max-width: 768px) {
  html:has(> body.page-template-single-project) { font-size: calc(100vw / 25.125); }
  body.page-template-single-project { background: var(--Pink); }
  .page-template-single-project .project-wrapper { height: auto; min-height: 100svh; padding-top: 5.375rem; background: var(--Pink); direction: rtl; }
  .page-template-single-project .project-mobile-logo { display: block; flex: none; width: 9.75rem; height: 1.381rem; margin: 0 auto 4.5rem; background: var(--Plum); -webkit-mask: url('assets/img/logo-main.svg') center / contain no-repeat; mask: url('assets/img/logo-main.svg') center / contain no-repeat; }
  .page-template-single-project .project-close, .page-template-single-project .project-slider-nav, .page-template-single-project .project-desktop-label { display: none; }
  .page-template-single-project .project-hero { display: block; flex: none; padding: 0 1.25rem; overflow: visible; }
  .page-template-single-project .project-info-col { width: 100%; max-width: none; }
  .page-template-single-project .project-client { margin: 0; font-size: 1.375rem; line-height: 1.625rem; opacity: 1; }
  .page-template-single-project .project-title { margin: 1rem 0 0; font-size: 2.875rem; line-height: 2.625rem; transform: scaleX(0.8); }
  .page-template-single-project .project-roles { margin: 1.25rem 0 0; font-size: 1.125rem; line-height: 1.5rem; opacity: 1; }
  .page-template-single-project .project-slider-col { width: 100%; max-width: none; margin: 3.375rem 0 0; }
  .page-template-single-project .project-slider-frame { margin: 0; padding: 0; overflow: visible; }
  .page-template-single-project #project-splide.splide { width: 18.75rem; max-width: none; margin-inline: auto; }
  .page-template-single-project .project-slide-btn { position: relative; touch-action: pan-y; }
  .page-template-single-project .project-slide-media { aspect-ratio: 300 / 555; border-radius: 3.75rem; }
  .page-template-single-project .project-expand-icon { position: absolute; top: 2.25rem; right: 1.875rem; display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%; color: #fff; background: rgba(255,255,255,0.25); }
  .page-template-single-project .project-expand-icon svg { width: 1.375rem; height: 1.375rem; }
  .page-template-single-project .project-description { margin: 5.75rem 0 0; padding: 0; max-height: none; overflow: visible; font-size: 1.2rem; line-height: 1.5rem; text-align: right; }
  .page-template-single-project .project-social-label { margin: 4rem 0 0.75rem; font-size: 0.875rem; line-height: 1.125rem; font-weight: 700; opacity: 1; }
  .page-template-single-project .project-mobile-label { display: inline; }
  .page-template-single-project .project-social { gap: 0.4375rem; }
  .page-template-single-project .project-info-col .social-link { width: 3.375rem; height: 3.375rem; border-radius: 1.0625rem; background: var(--Plum); }
  .page-template-single-project .project-info-col .social-icon { display: block; width: 100%; height: 100%; }
  .page-template-single-project .project-info-col .icon-bg { fill: transparent; }
  .page-template-single-project .project-info-col .icon-fg { fill: var(--Pink); }
  .page-template-single-project .project-next-bar { margin-top: 6.875rem; padding: 0.875rem 0; background: #ADD6FF; }
  .page-template-single-project .project-next-item { font-size: 2.625rem; line-height: 2.25rem; }
  .page-template-single-project .project-next-item:nth-child(2n) { opacity: 1; }
  .page-template-single-project .project-lightbox { height: 100vh; height: 100dvh; background: var(--Pink); backdrop-filter: none; -webkit-backdrop-filter: none; overscroll-behavior: contain; }
  .page-template-single-project .project-lightbox-inner { width: 100%; max-width: none; height: 100%; }
  .page-template-single-project .project-lightbox-frame, .page-template-single-project #project-lightbox-splide, .page-template-single-project #project-lightbox-splide .splide__track, .page-template-single-project #project-lightbox-splide .splide__list, .page-template-single-project #project-lightbox-splide .splide__slide { height: 100%; }
  .page-template-single-project #project-lightbox-splide .splide__track { overflow: hidden !important; touch-action: pan-y; }
  .page-template-single-project .project-lightbox-media { height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; background-size: cover; }
  .page-template-single-project #project-lightbox-splide .splide__slide:not(.is-active) .project-lightbox-media { filter: none; transform: none; }
  .page-template-single-project .project-lightbox-close { top: calc(1.375rem + env(safe-area-inset-top, 0px)); right: calc(1.75rem + env(safe-area-inset-right, 0px)); width: 2.75rem; height: 2.75rem; border-radius: 50%; color: #fff; background: radial-gradient(circle, rgba(255,255,255,0.25) 54%, transparent 56%); opacity: 1; transform: none; }
  .page-template-single-project .project-lightbox-close img, .page-template-single-project .project-lightbox-progress-track { display: none; }
  .page-template-single-project .project-collapse-icon { display: block; width: 1.375rem; height: 1.375rem; }
  .page-template-single-project :is(.project-mobile-logo, .project-slide-btn, .project-lightbox-close, .project-social a, .project-next-bar):focus-visible { outline: 2px solid currentColor !important; outline-offset: 4px; }
}

/* Text and 404 mobile — reference width 402px. The supplied text export is scaled from 283px. */
@media (max-width: 768px) {
  html:has(> body:is(.uchtti-text-page, .error404)) { font-size: calc(100vw / 25.125); }
  body.uchtti-text-page { background-color: var(--Sky); }
  :is(.uchtti-text-page, .error404) .site-header { position: absolute; top: 5.375rem; padding: 0; }
  :is(.uchtti-text-page, .error404) .header-inner { flex-direction: row; justify-content: center; align-items: center; gap: 0; }
  :is(.uchtti-text-page, .error404) .main-nav { display: none; }
  :is(.uchtti-text-page, .error404) .logo-link { margin: 0; }
  :is(.uchtti-text-page, .error404) .site-header .header-logo { width: 9.75rem; height: 1.381rem; background-color: var(--Blue); }

  .uchtti-text-page .text-wrapper { padding: 12.5rem 1.25rem 0; }
  .uchtti-text-page .text-container { width: 100%; max-width: none; direction: rtl; }
  .uchtti-text-page .text-title { margin: 0 0 3.5rem; font-size: 2.8125rem; line-height: 2.375rem; transform: none; overflow-wrap: anywhere; }
  .uchtti-text-page .text-content { font-size: 1.2rem; line-height: 1.5rem; overflow-wrap: anywhere; }
  .uchtti-text-page .text-content p { margin: 0; }
  .uchtti-text-page .text-content :is(h2, h3) { margin: 1.875rem 0 1.375rem; font-size: 1.375rem; line-height: 1.625rem; font-weight: 700; }
  .uchtti-text-page .text-content :is(ul, ol) { margin: 0; padding-inline-start: 1.25rem; padding-inline-end: 0; }
  .uchtti-text-page .text-content li { margin: 0; padding: 0; }
  .uchtti-text-page .text-content :is(img, video, iframe) { max-width: 100%; }
  .uchtti-text-page .text-content :is(img, video) { height: auto; }
  .uchtti-text-page .text-content > :last-child { margin-bottom: 0; }

  /* Export the mobile background WITH its four-line title, WITHOUT the logo or button, at 402 × 912 (or 2x). */
  .error404 .error404-hero { min-height: 57rem; padding: 33.6875rem 1.25rem 0; background-image: url('assets/img/error_404_bg_mobile.png'); background-position: center top; background-size: cover; }
  .error404 .error404-markers { display: none; }
  .error404 .error404-home-link { width: 100%; max-width: none; min-height: 5.125rem; margin: 0; padding: 0.5rem; border-radius: 2.5625rem; font-size: 2.5rem; line-height: 1; }

  :is(.uchtti-text-page, .error404) .site-footer { padding: 0 1.25rem 9.625rem; }
  .uchtti-text-page .footer-cta { padding-top: 13.75rem; }
  .error404 .footer-cta { padding-top: 8.625rem; }
  :is(.uchtti-text-page, .error404) .cta-collage { display: none; }
  :is(.uchtti-text-page, .error404) .cta-pill { width: 100%; height: 3.25rem; margin: 0; padding: 0 0.5rem; border-radius: 1.625rem; font-size: 1.75rem; line-height: 1; white-space: nowrap; }
  :is(.uchtti-text-page, .error404) .footer-main { flex-direction: column-reverse; flex-wrap: nowrap; align-items: center; gap: 0; margin-top: 3.75rem; }
  :is(.uchtti-text-page, .error404) .footer-logo-link { margin: 0; }
  :is(.uchtti-text-page, .error404) .footer-logo { width: 8.25rem; height: 1.17rem; }
  :is(.uchtti-text-page, .error404) .footer-links { width: 100%; margin-top: 4rem; justify-content: space-between; gap: 1rem; direction: ltr; }
  :is(.uchtti-text-page, .error404) .footer-col { min-width: 0; direction: rtl; }
  :is(.uchtti-text-page, .error404) .footer-col a { font-size: 1rem; line-height: 1.375rem; }
  :is(.uchtti-text-page, .error404) .footer-divider { margin: 2.25rem 0 0; }
  :is(.uchtti-text-page, .error404) .footer-bottom { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 2.75rem; margin-top: 2.25rem; }
  :is(.uchtti-text-page, .error404) .footer-social { gap: 0.9375rem; }
  :is(.uchtti-text-page, .error404) .social-link { width: 3.625rem; height: 3.625rem; }
  :is(.uchtti-text-page, .error404) .footer-fineprint { flex-direction: column-reverse; flex-wrap: nowrap; align-items: center; gap: 0; width: 100%; }
  :is(.uchtti-text-page, .error404) .footer-copy, :is(.uchtti-text-page, .error404) .footer-credit { font-size: 0.6875rem; line-height: 0.9625rem; text-align: center; }
  :is(.uchtti-text-page, .error404) :is(.logo-link, .cta-pill, .footer-logo-link, .footer-col a, .social-link):focus-visible { outline: 2px solid currentColor !important; outline-offset: 4px; }
}
