/* Design by Migdadi — editorial studio redesign inspired by the supplied reference. */
:root {
  --green: #049b70;
  --teal: #0b0b0b;
  --ink: #080808;
  --warm: #f5f5f2;
  --white: #ffffff;
  --mist: #e9eee9;
  --muted: #656565;
  --line: rgba(8, 8, 8, .14);
  --max: 1600px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --radius: 1.75rem;
}

html { background: var(--warm); }
body {
  background: var(--warm);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body.rtl { font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
main { background: var(--warm); }
.container { max-width: var(--max); }

/* Header */
.site-header,
.home-studio .studio-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245,245,242,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner { max-width: var(--max); min-height: 82px; }
.brand-link { gap: .7rem; font-weight: 760; letter-spacing: -.03em; }
.brand-link img { width: 48px; height: 31px; }
.brand-link span { font-size: .98rem; }
.nav-wrap { gap: 1rem; }
.site-nav { gap: clamp(.9rem, 1.7vw, 1.85rem); }
.site-nav a {
  padding: .55rem 0;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.site-nav a::after { bottom: .15rem; height: 2px; background: var(--green); }
.lang-toggle,
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: .55rem .85rem;
  border-color: var(--ink);
  border-radius: .85rem;
  color: var(--ink);
  background: var(--white);
}
.header-place { font-size: .72rem; color: var(--muted); }

/* Shared type and controls */
.eyebrow,
.index-label {
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.display,
.title,
.page-hero .title {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.072em;
}
.title,
.page-hero .title {
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  line-height: .87;
  max-width: 12ch;
}
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.6; }
.button {
  min-height: 50px;
  border: 1px solid var(--ink);
  border-radius: .9rem;
  padding: .8rem 1.2rem;
  color: var(--ink);
  background: var(--white);
  font-size: .9rem;
  font-weight: 800;
  box-shadow: none;
}
.button:hover { transform: translateY(-2px); background: var(--ink); color: var(--white); }
.button.primary { border-color: var(--ink); background: var(--ink); color: var(--white); }
.button.primary:hover { border-color: var(--green); background: var(--green); }
.button.secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.case-link b,
.text-link b,
.arrow-link span { display: none; }
[data-reveal] { transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
[data-reveal].visible { transform: none; }

/* Home */
.home-studio,
.studio-services { background: var(--warm); }
.studio-hero {
  min-height: calc(100svh - 82px);
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3.5rem, 7vw, 7rem);
  border-bottom: 1px solid var(--line);
  background: var(--warm);
}
.studio-hero > .container { min-height: calc(100svh - 160px); }
.studio-hero-meta { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.studio-hero-meta span { color: var(--muted); }
.studio-hero-title {
  margin: auto 0;
  color: var(--ink);
  font-size: clamp(5.8rem, 13.4vw, 13rem);
  font-weight: 700;
  line-height: .73;
  letter-spacing: -.092em;
}
.studio-hero-title em { color: var(--green); font-style: normal; }
.studio-hero-bottom {
  grid-template-columns: minmax(0, 480px) 1fr;
  align-items: end;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.studio-hero-bottom p { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.3rem); }
.studio-hero-bottom .text-link { justify-self: end; border: 1px solid var(--ink); border-radius: .9rem; padding: .85rem 1.1rem; }

.project-index { padding: clamp(5rem, 9vw, 9rem) 0; background: var(--warm); }
.index-heading { margin-bottom: clamp(3rem, 6vw, 6rem); }
.index-heading > p:last-child { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.indexed-projects,
.work-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(3.25rem, 7vw, 7.5rem) clamp(1.25rem, 2.3vw, 2.4rem);
  background: transparent;
  border: 0;
}
.cms-featured { grid-column: 1 / -1; }
.cms-project-image {
  aspect-ratio: 1.28;
  border: 1px solid rgba(8,8,8,.07);
  border-radius: var(--radius);
  background: #e9e9e5;
}
.cms-featured .cms-project-image { aspect-ratio: 1.88; }
.cms-project-image img { transition: transform .7s cubic-bezier(.22,1,.36,1); }
.cms-project-image:hover img { transform: scale(1.025); }
.cms-open {
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(8,8,8,.12);
  border-radius: .9rem;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 0;
}
.cms-open::before { content: "+"; font-size: 1.45rem; font-weight: 500; }
.cms-project-meta { grid-template-columns: 82px minmax(0,1fr); margin-top: 1.25rem; }
.cms-project-meta h3 { font-size: clamp(1.9rem, 3.6vw, 4.2rem); font-weight: 650; letter-spacing: -.055em; }
.cms-project-meta p { color: var(--muted); font-size: 1rem; }
.cms-project-meta > span { padding-top: .4rem; color: var(--muted); }
.all-work-row { padding-top: 3.5rem; }

.studio-profile {
  grid-template-columns: 1.12fr .88fr;
  background: var(--ink);
  color: var(--white);
}
.profile-statement { min-height: 760px; padding: clamp(2rem, 6vw, 6rem); border-color: rgba(255,255,255,.15); }
.profile-statement h2 { max-width: 8ch; font-size: clamp(4rem, 8.8vw, 9.5rem); line-height: .84; letter-spacing: -.075em; }
.profile-statement p { color: #b8b8b4; }
.profile-mark {
  min-height: 760px;
  background: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px),#111;
  background-size: 12.5% 12.5%;
}
.profile-mark img { filter: brightness(0) invert(1); }
.profile-brand-lockup {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 1.5rem;
  margin: auto;
  text-align: center;
}
.profile-mark .profile-brand-lockup img {
  width: clamp(150px, 18vw, 235px);
  margin: 0;
}
.profile-brand-lockup strong {
  font-size: clamp(.9rem, 1.25vw, 1.15rem);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.profile-statement h2 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 7vw, 7.4rem);
}

.studio-services { padding-block: clamp(5rem, 9vw, 9rem); }
.studio-service-row {
  min-height: 126px;
  grid-template-columns: 74px .9fr 1fr 40px;
  transition: color .2s ease, background .2s ease, padding .2s ease;
}
.studio-service-row h3 { color: var(--ink); font-size: clamp(2rem, 4.2vw, 5rem); font-weight: 650; }
.studio-service-row p { color: var(--muted); }
.studio-service-row:hover { color: var(--green); }
.studio-service-row b { font-size: 0; }
.studio-service-row b::before { content: "+"; font-size: 1.4rem; }

.studio-contact {
  padding: clamp(6rem, 11vw, 11rem) 0;
  background: var(--green);
  color: var(--white);
}
.studio-contact h2 { max-width: 10ch; font-size: clamp(4.2rem, 11vw, 12rem); font-weight: 700; line-height: .76; letter-spacing: -.085em; }
.contact-circle { border-radius: 1.5rem; background: var(--white); color: var(--ink); }
.contact-circle:hover { color: var(--white); background: var(--ink); transform: translateY(-3px); }

/* Inner pages */
.page-hero {
  min-height: min(720px, 78svh);
  display: flex;
  align-items: end;
  padding: clamp(5rem, 9vw, 9rem) 0 clamp(3rem, 5vw, 5rem);
  background: var(--warm);
}
.page-hero-row { width: 100%; align-items: end; }
.page-hero-row .lede { max-width: 34rem; }
.section { padding-block: clamp(4.5rem, 8vw, 8rem); }
.dark { background: var(--ink); color: var(--white); }
.dark .title,
.dark .display { color: var(--white); }
.dark .lede { color: #bababa; }

/* Work */
body:not(.home-studio) .work-grid { padding: 0; }
body:not(.home-studio) .work-grid .cms-project { background: transparent; }
.cms-letter-cover { border-radius: var(--radius); background: var(--ink); color: var(--white); }
.cms-letter-cover strong { font-size: clamp(3rem, 8vw, 8rem); font-weight: 650; letter-spacing: -.07em; }

/* Services and process */
.services-list { border-top-color: var(--line); }
.service {
  grid-template-columns: 72px minmax(250px,.75fr) minmax(0,1.25fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(2rem, 4vw, 3.25rem) 0;
}
.service b { color: var(--green); font-size: .8rem; }
.service h2 { color: var(--ink); font-size: clamp(2.2rem, 5vw, 5.8rem); font-weight: 650; line-height: .92; letter-spacing: -.065em; }
.service p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.scope-grid { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.scope-grid article {
  min-height: 260px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 0;
  background: var(--white);
}
.scope-grid h3 { margin-top: 0; color: var(--ink); font-size: clamp(1.5rem, 2.3vw, 2.4rem); letter-spacing: -.04em; }
.scope-grid p { color: var(--muted); }
.process-section { background: #e9e9e5; }
.process-list,
.process-steps { gap: 1px; padding: 1px; background: var(--line); border: 0; }
.process-list li,
.process-step {
  min-height: 260px;
  padding: clamp(1.5rem, 3vw, 2.5rem) !important;
  border: 0 !important;
  background: var(--white);
}
.process-step > span { color: var(--green); }
.process-list h3,
.process-step h3 { color: var(--ink); font-size: clamp(1.6rem, 2.8vw, 2.7rem); line-height: 1; letter-spacing: -.04em; }
.process-list p,
.process-step p { color: var(--muted); }
.process-support { background: #e9e9e5; }
.faq-section details { padding: 1.65rem 0; border-color: var(--line); }
.faq-section summary { color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.5rem); }

/* About */
.about-grid { gap: 1px; border-color: var(--line); background: var(--line); }
.about-panel { min-height: 580px; background: var(--white); }
.about-panel.dark { background: var(--ink); }
.about-number { color: var(--green); font-size: clamp(8rem, 19vw, 18rem); }
.construction-image { filter: grayscale(1) contrast(1.1); }

/* Contact */
.contact-layout { grid-template-columns: .8fr 1.2fr; }
.contact-layout aside { position: sticky; top: 120px; }
.contact-form {
  gap: 1rem;
  padding: clamp(1.25rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.field label { color: var(--ink); font-size: .88rem; }
.field input,
.field select,
.field textarea {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #f7f7f5;
}
.field textarea { min-height: 150px; }
.contact-address { color: var(--muted); }

/* Portfolio */
.portfolio-page,
.portfolio-page .portfolio-intro { background: var(--warm); }
.portfolio-page .portfolio-intro { padding: clamp(5rem, 10vw, 10rem) 0 clamp(3rem, 5vw, 5rem); }
.portfolio-page .portfolio-intro h1 { color: var(--ink); font-size: clamp(5rem, 13vw, 13rem); font-weight: 700; letter-spacing: -.09em; }
.portfolio-viewer iframe { border: 0; border-radius: var(--radius); background: var(--white); }

/* Calculator */
.price-page,
.price-hero { background: var(--warm); color: var(--ink); }
.price-hero { min-height: 620px; display: flex; align-items: end; padding-bottom: clamp(3rem, 6vw, 6rem); border-bottom: 1px solid var(--line); }
.price-hero .title { color: var(--ink); font-size: clamp(3.7rem, 8vw, 8.5rem); }
.price-hero .lede { color: var(--muted); }
.price-card { border-color: var(--line); border-radius: var(--radius); }
.price-card h2,
.price-field label,
.price-label { color: var(--ink); }
.price-field input,
.price-field select,
.price-field textarea { border-color: var(--line); border-radius: .8rem; background: #f7f7f5; }
.price-result { top: 104px; border-radius: var(--radius); background: var(--ink); }
.result-featured { border-radius: 1rem; background: var(--green); }
.result-box { border-radius: .8rem; }
.price-checks { border-radius: 1rem; }

/* Generic cases and project pages */
.cms-case { padding-top: clamp(5rem, 9vw, 9rem); }
.cms-case h1 { color: var(--ink); font-size: clamp(4rem, 10vw, 10rem); font-weight: 700; line-height: .82; letter-spacing: -.08em; }
.cms-case > p { color: var(--muted); }
.cms-case-cover,
.cms-figure { overflow: hidden; border-radius: var(--radius); }
.cms-copy h2 { color: var(--ink); font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.05em; }

/* Footer */
.site-footer,
.portfolio-page .site-footer {
  padding: clamp(4rem, 8vw, 7rem) 0 1.5rem;
  background: var(--ink);
  color: var(--white);
}
.footer-grid { gap: 4rem; padding-bottom: clamp(4rem, 8vw, 8rem); }
.footer-mark { width: clamp(80px, 11vw, 150px); filter: brightness(0) invert(1); }
.footer-nav { align-content: start; gap: .85rem clamp(1rem, 2.5vw, 2.5rem); }
.footer-nav a { color: #d6d6d2; font-size: 1rem; }
.footer-nav a:hover { color: var(--green); }
.footer-bottom { padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); color: #969692; }
.cms-admin-link { background: #111; color: #8d8d89; }

@media (max-width: 1100px) {
  .header-place { display: none; }
  .site-nav { gap: .9rem; }
  .site-nav a { font-size: .82rem; }
  .profile-statement,
  .profile-mark { min-height: 620px; }
}

@media (max-width: 980px) {
  .header-inner { min-height: 72px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav,
  .home-studio .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    padding: 1.25rem var(--pad) 1.75rem;
    border-bottom: 1px solid var(--line);
    background: var(--warm);
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
  }
  .site-nav.open { display: grid; grid-template-columns: 1fr 1fr; }
  .site-nav a { padding: .8rem 0; font-size: 1rem; }
  .page-hero { min-height: 620px; }
  .studio-profile,
  .contact-layout { grid-template-columns: 1fr; }
  .contact-layout aside { position: static; }
  .profile-statement,
  .profile-mark { min-height: 600px; }
}

@media (max-width: 720px) {
  :root { --radius: 1.1rem; }
  .studio-hero { min-height: auto; }
  .studio-hero > .container { min-height: calc(100svh - 120px); }
  .studio-hero-title { font-size: clamp(4rem, 20vw, 7rem); }
  .studio-hero-bottom { grid-template-columns: 1fr; }
  .studio-hero-bottom .text-link { justify-self: start; }
  .indexed-projects,
  .work-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .cms-featured { grid-column: auto; }
  .cms-featured .cms-project-image,
  .cms-project-image { aspect-ratio: 1.25; }
  .cms-project-meta { grid-template-columns: 48px minmax(0,1fr); }
  .studio-service-row { grid-template-columns: 42px 1fr 26px; gap: .9rem; padding-block: 1.5rem; }
  .studio-service-row p { grid-column: 2 / 4; }
  .service { grid-template-columns: 42px 1fr; }
  .service p { grid-column: 2; }
  .scope-grid,
  .process-list,
  .process-steps { grid-template-columns: 1fr; }
  .page-hero-row { display: grid; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav.open { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand-link span { display: none; }
  .studio-hero-title { font-size: clamp(3.6rem, 19vw, 5.4rem); }
  .title,
  .page-hero .title { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .profile-statement h2,
  .studio-contact h2 { font-size: clamp(3.5rem, 18vw, 5.5rem); }
  .profile-statement,
  .profile-mark { min-height: 520px; }
  .lang-toggle,
  .menu-toggle { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .cms-project-image img, .button { transition: none !important; }
}

/* Readability pass: comfortable separation between every line */
body { line-height: 1.72; }
p,
li,
blockquote,
.lede,
.service p,
.scope-grid p,
.process-list p,
.process-step p,
.cms-project-meta p { line-height: 1.78; }

.studio-hero-title { line-height: .94; }
.studio-hero-title > span { display: block; padding-block: .025em; }
.title,
.page-hero .title { line-height: .98; }
.profile-statement h2 { line-height: .99; }
.studio-contact h2 { line-height: .94; }
.global-contact-title { line-height: .9; }
.global-contact-title span + span { margin-top: .08em; }
.service h2 { line-height: 1.02; }
.process-list h3,
.process-step h3,
.cms-project-meta h3,
.cms-copy h2 { line-height: 1.08; }
.cms-case h1 { line-height: .94; }
.portfolio-page .portfolio-intro h1 { line-height: .96; }

html[dir="rtl"] body { line-height: 1.86; }
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] blockquote,
html[dir="rtl"] .lede,
html[dir="rtl"] .service p,
html[dir="rtl"] .scope-grid p,
html[dir="rtl"] .process-list p,
html[dir="rtl"] .process-step p,
html[dir="rtl"] .cms-project-meta p { line-height: 1.95; }
html[dir="rtl"] .studio-hero-title { line-height: 1.16; }
html[dir="rtl"] .studio-hero-title > span { padding-block: .04em; }
html[dir="rtl"] .title,
html[dir="rtl"] .page-hero .title,
html[dir="rtl"] .profile-statement h2,
html[dir="rtl"] .studio-contact h2,
html[dir="rtl"] .global-contact-title,
html[dir="rtl"] .service h2,
html[dir="rtl"] .cms-case h1,
html[dir="rtl"] .portfolio-page .portfolio-intro h1 { line-height: 1.18; }
html[dir="rtl"] .process-list h3,
html[dir="rtl"] .process-step h3,
html[dir="rtl"] .cms-project-meta h3,
html[dir="rtl"] .cms-copy h2 { line-height: 1.35; }
html[dir="rtl"] .global-contact-title span + span { margin-top: .16em; }

/* Corrected opening statement and full-screen studio menu */
.studio-hero-title[data-hero-title] {
  display: grid;
  gap: .055em;
  max-width: 100%;
  line-height: .84;
}
.studio-hero-title[data-hero-title] > span {
  width: max-content;
  max-width: 100%;
  padding: 0;
}
.studio-hero-title[data-hero-title] > span:nth-child(2) { margin-inline-start: .38em; }
.studio-hero-title[data-hero-title] > span:nth-child(3) { margin-inline-start: .08em; }
.studio-hero-title .hero-accent { color: var(--green); font-style: normal; }
html[dir="rtl"] .studio-hero-title[data-hero-title] { gap: .1em; line-height: 1.08; }
html[dir="rtl"] .studio-hero-title[data-hero-title] > span:nth-child(2) { margin-inline-start: .75em; }
html[dir="rtl"] .studio-hero-title[data-hero-title] > span:nth-child(3) { margin-inline-start: .12em; }

.motion-loader-logo {
  width: clamp(110px,16vw,220px);
  height: auto;
  object-fit: contain;
  animation: loaderLogo .75s cubic-bezier(.22,1,.36,1) both;
}
@keyframes loaderLogo {
  from { opacity: 0; transform: translateY(24px) scale(.94); }
  to { opacity: 1; transform: none; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
}
.studio-menu {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  padding: clamp(1.25rem,3.2vw,3.2rem) var(--pad) clamp(1rem,2.4vw,2.3rem);
  color: var(--white);
  background: #050505;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .75s cubic-bezier(.76,0,.24,1), visibility .75s;
  overflow: auto;
}
.studio-menu.is-open { visibility: visible; clip-path: inset(0); }
.menu-open { overflow: hidden; }
.studio-menu-head,
.studio-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.studio-menu-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--white);
  font-size: .92rem;
  font-weight: 750;
}
.studio-menu-brand img { width: clamp(54px,7vw,95px); height: auto; }
.studio-menu-close {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 46px;
  padding: .55rem .8rem .55rem 1rem;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: .8rem;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
[dir="rtl"] .studio-menu-close { padding: .55rem 1rem .55rem .8rem; }
.studio-menu-close b { font-size: 1.7rem; font-weight: 300; line-height: .6; }
.studio-menu-close:hover { color: var(--ink); background: var(--white); }
.studio-menu-nav {
  width: min(1120px,86vw);
  display: grid;
  align-content: center;
  padding-block: clamp(2rem,4vh,4rem);
}
.studio-menu-nav a {
  display: grid;
  grid-template-columns: clamp(70px,9vw,150px) 1fr;
  align-items: baseline;
  color: #363636;
  line-height: .9;
  opacity: 0;
  transform: translateY(55px);
  transition: color .28s ease, transform .7s cubic-bezier(.22,1,.36,1), opacity .55s ease;
}
.studio-menu.is-open .studio-menu-nav a { opacity: 1; transform: none; }
.studio-menu.is-open .studio-menu-nav a:nth-child(1) { transition-delay: .18s; }
.studio-menu.is-open .studio-menu-nav a:nth-child(2) { transition-delay: .23s; }
.studio-menu.is-open .studio-menu-nav a:nth-child(3) { transition-delay: .28s; }
.studio-menu.is-open .studio-menu-nav a:nth-child(4) { transition-delay: .33s; }
.studio-menu.is-open .studio-menu-nav a:nth-child(5) { transition-delay: .38s; }
.studio-menu.is-open .studio-menu-nav a:nth-child(6) { transition-delay: .43s; }
.studio-menu.is-open .studio-menu-nav a:nth-child(7) { transition-delay: .48s; }
.studio-menu-nav a:hover { color: var(--green); }
.studio-menu-nav a:hover small { color: var(--green); }
.studio-menu-nav small {
  color: #5c5c5c;
  font-size: clamp(.7rem,1vw,.9rem);
  font-weight: 600;
  letter-spacing: .08em;
  transition: color .25s;
}
.studio-menu-nav span {
  font-size: clamp(2.8rem,6.2vh,5.8rem);
  font-weight: 650;
  letter-spacing: -.075em;
}
html[dir="rtl"] .studio-menu-nav span { line-height: 1.12; letter-spacing: -.045em; }
.studio-menu-foot {
  justify-content: flex-start;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #7b7b7b;
  font-size: .8rem;
}
.studio-menu-foot a { color: #bcbcbc; }
.studio-menu-foot a:hover { color: var(--green); }

@media (max-width: 980px) {
  .site-nav { display: none !important; }
  .studio-menu-nav { width: 100%; }
  .studio-menu-nav a { grid-template-columns: 60px 1fr; }
  .studio-menu-nav span { font-size: clamp(2.6rem,8vh,5.4rem); }
}

@media (max-width: 620px) {
  .studio-hero-title[data-hero-title] { font-size: clamp(3.5rem,18vw,5.5rem); line-height: .9; }
  .studio-hero-title[data-hero-title] > span:nth-child(2) { margin-inline-start: .16em; }
  .studio-hero-title[data-hero-title] > span:nth-child(3) { margin-inline-start: 0; }
  html[dir="rtl"] .studio-hero-title[data-hero-title] { line-height: 1.12; }
  .studio-menu { padding-top: 1rem; }
  .studio-menu-brand span { display: none; }
  .studio-menu-nav { padding-block: 1.5rem; }
  .studio-menu-nav a { grid-template-columns: 44px 1fr; }
  .studio-menu-nav span { font-size: clamp(2.25rem,10.5vw,3.8rem); }
  .studio-menu-foot { display: grid; gap: .35rem; }
}

/* Motion-led studio experience */
html { scroll-behavior: smooth; }
html[dir="rtl"] .display,
html[dir="rtl"] .title,
html[dir="rtl"] .studio-hero-title,
html[dir="rtl"] .global-contact-title { letter-spacing: -.045em; }
body { overflow-x: clip; }
body::selection { color: var(--white); background: var(--green); }

.motion-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  transition: transform .85s cubic-bezier(.76,0,.24,1), visibility .85s;
}
.motion-loader-mark {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.09em;
  animation: loaderMark .75s cubic-bezier(.22,1,.36,1) both;
}
.motion-loader-line {
  position: absolute;
  inset: auto 8vw 8vh;
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.16);
}
.motion-loader-line::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform-origin: left;
  animation: loaderLine .72s cubic-bezier(.76,0,.24,1) both;
}
.site-loaded .motion-loader { transform: translateY(-102%); visibility: hidden; }
.skip-intro .motion-loader { display: none; }
@keyframes loaderMark { from { opacity: 0; transform: translateY(35px) scale(.94); } }
@keyframes loaderLine { from { transform: scaleX(0); } }

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: var(--ink);
  transform: translateY(102%);
  transition: transform .52s cubic-bezier(.76,0,.24,1);
}
.page-transition.is-active { transform: none; }
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  pointer-events: none;
  background: var(--green);
  transform: scaleX(var(--scroll-progress,0));
  transform-origin: left;
}
[dir="rtl"] .scroll-progress { transform-origin: right; }

.motion-cursor {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  color: var(--white);
  background: var(--green);
  mix-blend-mode: difference;
  transition: width .3s ease, height .3s ease, opacity .2s ease, background .2s ease;
}
.motion-cursor span { opacity: 0; font-size: .65rem; font-weight: 800; text-transform: uppercase; transition: opacity .2s; }
.motion-cursor.is-visible { opacity: 1; }
.motion-cursor.is-active { width: 26px; height: 26px; }
.motion-cursor.is-project { width: 84px; height: 84px; mix-blend-mode: normal; }
.motion-cursor.is-project span { opacity: 1; }

.site-header,
.home-studio .studio-header {
  transition: transform .5s cubic-bezier(.22,1,.36,1), background-color .35s, box-shadow .35s;
}
.site-header.header-hidden { transform: translateY(-110%); }
.site-header.header-scrolled { background: rgba(247,247,244,.86); box-shadow: 0 1px 0 var(--line); }
.brand-link img { transition: transform .55s cubic-bezier(.22,1,.36,1); }
.brand-link:hover img { transform: rotate(-8deg) scale(1.08); }
.site-nav a { overflow: hidden; }
.site-nav a::after { transform-origin: right; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform-origin: left; }

.motion-ready .studio-hero-meta,
.motion-ready .studio-hero-title > span,
.motion-ready .studio-hero-bottom {
  opacity: 0;
  transform: translateY(60px);
}
.site-loaded .studio-hero-meta,
.site-loaded .studio-hero-title > span,
.site-loaded .studio-hero-bottom {
  opacity: 1;
  transform: none;
  transition: opacity .75s ease, transform 1s cubic-bezier(.22,1,.36,1);
}
.site-loaded .studio-hero-meta { transition-delay: .05s; }
.site-loaded .studio-hero-title > span:nth-child(1) { transition-delay: .11s; }
.site-loaded .studio-hero-title > span:nth-child(2) { transition-delay: .18s; }
.site-loaded .studio-hero-title > span:nth-child(3) { transition-delay: .25s; }
.site-loaded .studio-hero-bottom { transition-delay: .35s; }
.studio-hero-title em { position: relative; display: inline-block; }
.studio-hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.08em;
  height: .055em;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.22,1,.36,1) .8s;
}
.site-loaded .studio-hero-title em::after { transform: scaleX(1); }

.motion-reveal {
  opacity: 0;
  transform: translateY(52px);
  clip-path: inset(0 0 16% 0);
  transition: opacity .75s ease var(--reveal-delay,0ms), transform 1s cubic-bezier(.22,1,.36,1) var(--reveal-delay,0ms), clip-path 1s cubic-bezier(.22,1,.36,1) var(--reveal-delay,0ms);
}
.motion-reveal.is-in-view,
.motion-reveal.visible { opacity: 1; transform: none; clip-path: inset(0); }

.cms-project-image { isolation: isolate; }
.cms-project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,transparent 45%,rgba(0,0,0,.24));
  opacity: 0;
  transition: opacity .45s ease;
}
.cms-project-image img {
  height: calc(100% + 38px);
  transform: translateY(var(--parallax-y,0)) scale(1.025);
  transition: transform .7s cubic-bezier(.22,1,.36,1), filter .5s ease;
}
.cms-project-image:hover::after { opacity: 1; }
.cms-project-image:hover img { transform: translateY(var(--parallax-y,0)) scale(1.07); }
.project-hover-label {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 3;
  padding: .65rem .85rem;
  border-radius: .6rem;
  color: var(--white);
  background: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
}
[dir="rtl"] .project-hover-label { left: auto; right: 22px; }
.cms-project-image:hover .project-hover-label { opacity: 1; transform: none; }
.cms-open { z-index: 4; transition: transform .4s cubic-bezier(.22,1,.36,1), background .3s, color .3s; }
.cms-project-image:hover .cms-open { transform: rotate(90deg); color: var(--white); background: var(--green); }

.work-browser { padding-top: 0; }
.work-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem,6vw,8rem);
  align-items: start;
  padding-top: 2rem;
  padding-bottom: clamp(3rem,6vw,6rem);
  border-top: 1px solid var(--line);
}
.work-view-switch { display: flex; gap: .45rem; }
.work-view-switch button,
.work-filters button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color .25s, background .25s, transform .25s;
}
.work-view-switch button {
  min-width: 74px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: .7rem;
}
.work-view-switch button.is-active { color: var(--white); background: var(--ink); }
.work-filters { display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; justify-content: flex-end; }
.work-filters button { position: relative; padding: .65rem 0; font-size: .9rem; }
.work-filters button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .35rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .3s;
}
.work-filters button:hover,
.work-filters button.is-active { color: var(--ink); }
.work-filters button.is-active::after { transform: scaleX(1); }
.work-filters sup { margin-inline-start: .25rem; color: var(--green); font-size: .65rem; }
.work-grid .cms-project[hidden] { display: none; }
.work-grid .cms-project.filter-enter { animation: filterEnter .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes filterEnter { from { opacity: 0; transform: translateY(26px) scale(.98); } }

.work-grid.is-list-view { display: block; border-top: 1px solid var(--line); }
.work-grid.is-list-view .cms-project {
  display: grid;
  grid-template-columns: minmax(150px,280px) 1fr;
  gap: clamp(1rem,3vw,3rem);
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.work-grid.is-list-view .cms-project-image { aspect-ratio: 16/9; border-radius: .85rem; }
.work-grid.is-list-view .cms-project-meta { margin: 0; }
.work-grid.is-list-view .cms-project-meta h3 { font-size: clamp(1.55rem,3vw,3.3rem); }

.global-contact {
  position: relative;
  z-index: 2;
  padding: clamp(6rem,12vw,12rem) 0 clamp(3rem,5vw,5rem);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.global-contact::before {
  content: "";
  position: absolute;
  width: min(40vw,540px);
  aspect-ratio: 1;
  right: -10vw;
  top: -12vw;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  box-shadow: 0 0 0 6vw rgba(255,255,255,.025),0 0 0 12vw rgba(255,255,255,.018);
  transition: transform 1.2s cubic-bezier(.22,1,.36,1);
}
[dir="rtl"] .global-contact::before { right: auto; left: -10vw; }
.global-contact:hover::before { transform: scale(1.14) rotate(18deg); }
.global-contact .index-label { color: #b0b0ac; }
.global-contact-title {
  position: relative;
  display: block;
  margin: clamp(3rem,7vw,7rem) 0;
  color: var(--white);
  font-size: clamp(4.1rem,11.8vw,12.5rem);
  font-weight: 700;
  line-height: .75;
  letter-spacing: -.085em;
}
.global-contact-title span { display: block; transition: color .4s, transform .6s cubic-bezier(.22,1,.36,1); }
.global-contact-title span:last-child { color: var(--green); }
.global-contact-title:hover span:first-child { transform: translateX(.035em); }
.global-contact-title:hover span:last-child { transform: translateX(-.035em); color: var(--white); }
[dir="rtl"] .global-contact-title:hover span:first-child { transform: translateX(-.035em); }
[dir="rtl"] .global-contact-title:hover span:last-child { transform: translateX(.035em); }
.global-contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(2rem,5vw,5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.global-contact-meta a { color: var(--white); font-size: clamp(1rem,1.6vw,1.35rem); }
.global-contact-meta a:hover { color: var(--green); }
.global-contact + .site-footer { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15); }

@media (max-width: 980px) {
  .motion-cursor { display: none; }
  .work-controls { grid-template-columns: 1fr; }
  .work-filters { justify-content: flex-start; }
  .site-nav.open {
    inset: 72px 0 0;
    height: calc(100svh - 72px);
    align-content: center;
    gap: 0;
    padding: 2rem var(--pad);
    background: rgba(247,247,244,.98);
  }
  .site-nav.open a { font-size: clamp(1.8rem,6vw,3.4rem); font-weight: 650; letter-spacing: -.05em; }
}

@media (max-width: 720px) {
  .project-hover-label { display: none; }
  .work-grid.is-list-view .cms-project { grid-template-columns: 110px 1fr; }
  .work-grid.is-list-view .cms-project-meta { grid-template-columns: 1fr; }
  .work-grid.is-list-view .cms-project-meta > span,
  .work-grid.is-list-view .cms-project-meta p { display: none; }
  .global-contact-title { font-size: clamp(3.4rem,17.5vw,6.2rem); line-height: .82; }
  .global-contact-meta { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-loader,
  .page-transition,
  .motion-cursor { display: none !important; }
  .motion-reveal,
  .studio-hero-meta,
  .studio-hero-title > span,
  .studio-hero-bottom { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* Final type rhythm overrides */
.studio-hero-title { line-height: .94; }
.studio-hero-title > span { display: block; padding-block: .025em; }
.title,
.page-hero .title { line-height: .98; }
.profile-statement h2 { line-height: .99; }
.studio-contact h2 { line-height: .94; }
.global-contact-title { line-height: .9; }
.global-contact-title span + span { margin-top: .08em; }
.service h2 { line-height: 1.02; }
.process-list h3,
.process-step h3,
.cms-project-meta h3,
.cms-copy h2 { line-height: 1.08; }
.cms-case h1 { line-height: .94; }
.portfolio-page .portfolio-intro h1 { line-height: .96; }

html[dir="rtl"] .studio-hero-title { line-height: 1.16; }
html[dir="rtl"] .studio-hero-title > span { padding-block: .04em; }
html[dir="rtl"] .title,
html[dir="rtl"] .page-hero .title,
html[dir="rtl"] .profile-statement h2,
html[dir="rtl"] .studio-contact h2,
html[dir="rtl"] .global-contact-title,
html[dir="rtl"] .service h2,
html[dir="rtl"] .cms-case h1,
html[dir="rtl"] .portfolio-page .portfolio-intro h1 { line-height: 1.18; }
html[dir="rtl"] .process-list h3,
html[dir="rtl"] .process-step h3,
html[dir="rtl"] .cms-project-meta h3,
html[dir="rtl"] .cms-copy h2 { line-height: 1.35; }
html[dir="rtl"] .global-contact-title span + span { margin-top: .16em; }

/* Selected clients: shares the site's reveal and hover rhythm */
.clients-section { scroll-margin-top: 7rem; color: var(--white); background: #050505; }
.clients-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.clients-heading h2 { margin: 0; font-size: clamp(2.6rem, 6vw, 6rem); line-height: 1.1; letter-spacing: -.055em; max-width: 12ch; }
html[dir="rtl"] .clients-heading h2 { line-height: 1.4; letter-spacing: 0; }
.clients-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.2); }
.client-brand { display: grid; place-items: center; min-height: 180px; padding: 2.5rem; border-bottom: 1px solid #0002; }
.client-brand { border-color: rgba(255,255,255,.14); }
.client-brand img { width: 80%; height: 80px; object-fit: contain; transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .4s; }
.client-brand:hover img { transform: scale(1.08); opacity: .68; }
.clients-empty { margin-top: 3rem; border-top: 1px solid #0003; padding-top: 1.5rem; }
.clients-empty p { font-size: 1rem; line-height: 1.8; color: #666; }
.studio-menu.is-open .studio-menu-nav a:nth-child(8) { transition-delay: .53s; }
@media(max-width: 700px) { .clients-heading { grid-template-columns: 1fr; gap: 1.5rem; } .clients-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .client-brand { min-height: 130px; padding: 1.5rem; } }
@media(prefers-reduced-motion:reduce) { .client-brand img { transition: none; } .client-brand:hover img { transform: none; } }

/* Brand profiles and monochrome client artwork */
.social-links { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; }
.social-links a { color: inherit; text-decoration: none; padding-block: .5rem; }
.social-links a:hover { color: var(--green); }
.social-links a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.studio-menu-foot .social-links { grid-column: 1 / -1; }
.contact-channels .social-links { margin-bottom: 1rem; }
.client-brand-jpg img { height: 130px; filter: grayscale(1) invert(1) contrast(10); mix-blend-mode: screen; }

.client-brand-white img { filter: brightness(0) invert(1); }
.client-brand-white-background img { height: 115px; filter: grayscale(1) invert(1) brightness(3) contrast(3); mix-blend-mode: screen; }

/* Brand color on content rather than pointer outlines */
.client-brand { --client-hover-filter: brightness(0) invert(1); }
.client-brand-jpg { --client-hover-filter: grayscale(1) invert(1) contrast(10); }
.client-brand-white-background { --client-hover-filter: grayscale(1) invert(1) brightness(3) contrast(3); }
.client-brand img { transition: transform .6s cubic-bezier(.22,1,.36,1), filter .25s ease; }
@media (hover: hover) {
  .client-brand:hover img { filter: var(--client-hover-filter) url(#client-green); opacity: 1; }
  a:hover, button:hover { color: var(--green); }
}
.client-brand:active img { filter: var(--client-hover-filter) url(#client-green); opacity: 1; }
a:active, button:active { color: var(--green); }
.button.primary:hover, .button.primary:active { background: #050505; color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .client-brand img { transition: none; } }

.studio-menu.is-open .studio-menu-nav a:is(:hover, :active, :focus-visible),
.studio-menu.is-open .studio-menu-nav a:is(:hover, :active, :focus-visible) small {
  color: var(--green);
  transition-delay: 0s;
}

/* Highlight the selected menu label and its immediate neighbors */
.studio-menu.is-open .studio-menu-nav a:has(+ a:is(:hover, :active, :focus-visible)),
.studio-menu.is-open .studio-menu-nav a:is(:hover, :active, :focus-visible) + a {
  color: var(--white);
  transition-delay: 0s;
}
.studio-menu.is-open .studio-menu-nav a:has(+ a:is(:hover, :active, :focus-visible)) small,
.studio-menu.is-open .studio-menu-nav a:is(:hover, :active, :focus-visible) + a small { color: var(--white); }
/* A selected neighbor always keeps priority */
.studio-menu.is-open .studio-menu-nav a:is(:hover, :active, :focus-visible),
.studio-menu.is-open .studio-menu-nav a:is(:hover, :active, :focus-visible) small { color: var(--green); }

/* Capabilities: highlight only the row being interacted with */
.studio-service-row h3, .studio-service-row p { transition: color .25s ease; }
.studio-service-row:is(:hover, :active, :focus-visible),
.studio-service-row:is(:hover, :active, :focus-visible) h3,
.studio-service-row:is(:hover, :active, :focus-visible) p { color: var(--green); }
@media (prefers-reduced-motion: reduce) { .studio-service-row h3, .studio-service-row p { transition: none; } }

.client-brand-larger img { width: 90%; height: 96px; }
